fork download
  1. /* Program dengan FOR Bersarang */
  2.  
  3. #include <stdio.h>
  4. const int PANJANG = 2;
  5. const int TINGGI = 3;
  6. int main() {
  7. int i, j;
  8. for (i = 0; i < TINGGI; i++) {
  9. for (j = 0; j < PANJANG; j++) {
  10. printf("*") ;
  11. }
  12. printf("\n") ;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
**
**
**