training

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

tabdcm.c (327B)


      1 /* Esercizio 3.25 (Cap. 3)
      2  *
      3  * Stampa una tabella con i numeri da 1
      4  * a 10 moltiplicati per 10, 100 e 100.
      5 */
      6 
      7 #include <stdio.h>
      8 
      9 int main()
     10 {
     11    int i=1;
     12 
     13    printf("N\t10*N\t100*N\t1000*N\n\n");
     14    while(i <= 10) {
     15       printf("%d\t%d\t%d\t%d\n", i, 10*i, 100*i, 1000*i);
     16       ++i;
     17    }
     18 
     19    return 0;
     20 } /* E0F main */
     21