oddingprod15.c (269B)
1 /* Esercizio 4.13 */ 2 3 #include <stdio.h> 4 5 int main() 6 { 7 int i, product = 1; 8 9 for (i = 1; i <= 15; i += 2) { 10 if (i % 2) /* never used */ 11 product += i; 12 } 13 14 printf("Product of all integers from 1 to 15 is %d\n", product); 15 16 return 0; 17 } /* E0F main */ 18