#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int n,i,j,k,l; l=1; printf("masukan : ");scanf("%i",&n); for (i=n; i>=1; i=i-2) { for (k=1;k<=l;k++) printf(" "); for (j=1; j<=i; j++) { printf("*"); } l++; printf("\n"); } getch(); return 0; }
cvbn45's Blog Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger