training

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

howfast.c (224B)


      1 /*
      2  * Esercizio 3.37
      3  * Calcola la velocità del PC
      4 */
      5 
      6 #include <stdio.h>
      7 
      8 int main()
      9 {
     10    int i = 1;
     11 
     12    while(i < 3000000) {
     13       if (i % 1000000 == 0)
     14 	 printf("%d\n", i);
     15       ++i;
     16    }
     17 
     18    return 0;
     19 } /* E0F main */
     20