training

Code I wrote during training
git clone git://git.bitsmanent.org/training
Log | Files | Refs | README

asterisk.c (244B)


      1 /*
      2  * Esercizio 3.38
      3  * Visualizza 100 asterischi uno per volta.
      4 */
      5 
      6 #include <stdio.h>
      7 
      8 int main()
      9 {
     10    int i = 1;
     11 
     12    while(i <= 100) {
     13       printf("*");
     14       if (i % 10 == 0)
     15 	 printf("\n");
     16       ++i;
     17    }
     18 
     19    return 0;
     20 } /* E0F main */
     21