training

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

calc.c (304B)


      1 /* Calcola il prodotto di tre interi */
      2 #include <stdio.h>
      3 
      4 /* Funzione principale */
      5 int main()
      6 {
      7    int x, y, z, result;
      8 
      9    printf("Imetti tre interi: ");
     10    scanf("%d%d%d", &x, &y, &z);
     11 
     12    result = x * y * z;
     13 
     14    printf("The product is");
     15    printf(" %d\n",result);
     16 
     17    return 0;
     18 
     19 } /* E0F main */
     20