Kode Program :
#include <stdio.h>
main () {
int i, j, M, N;
printf("==============================================\n");
printf(" Created Joko Fani Andrianto\n");
printf(" andre-networking.blogspot.com\n");
printf("==============================================\n");
printf("Banyak Bintang Ke Bawah : ");
scanf("%d", &M);
printf("Banyak Bintang Ke Samping : ");
scanf("%d", &N);
for(i=1;i<=M;i++) {
for (j=1;j<=N;j++){
printf("*");
}
printf("\n");
}
getch();
return 0;
}
Simpan dengan looping_for.c
Tulis komentar anda... Conversion Conversion Emoticon Emoticon