Created
September 17, 2014 09:03
-
-
Save metrafonic/f6ae9dad5663deb8a28f to your computer and use it in GitHub Desktop.
oppgave2.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
int main(){ | |
int antallmellom=0, plasser=20, i, j; | |
for(i=1;i<plasser;i++){ | |
antallmellom=plasser-i; | |
for(j=1;j<=antallmellom;j++){ | |
printf(" "); | |
} | |
for(j=1;j<i;j++){ | |
printf("*"); | |
} | |
printf("\n"); | |
} | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment