training

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

intsum30.c (218B)


      1 /* Esercizio 4.12 */
      2 
      3 #include <stdio.h>
      4 
      5 int main()
      6 {
      7    int i;
      8    int sum = 0;
      9 
     10    for (i = 2; i <= 30; i += 2) {
     11       if (! (i % 2))
     12          printf("%d ", i);
     13    }
     14 
     15    printf("\n");
     16    return 0;
     17 } /* E0F main */
     18