Skip to content

Instantly share code, notes, and snippets.

@metrafonic
Created September 17, 2014 09:03
Show Gist options
  • Save metrafonic/f6ae9dad5663deb8a28f to your computer and use it in GitHub Desktop.
Save metrafonic/f6ae9dad5663deb8a28f to your computer and use it in GitHub Desktop.
oppgave2.c
#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