Advertisement
adventuretimeh

(stadio) costo del biglietto

Nov 15th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main(int argc, char *argv[]) {
  7.     int eta;
  8.     int costo_biglietto;
  9.     printf("dammi l eta");
  10.     scanf("%d",&eta);
  11.     if (eta<=10)
  12.      {
  13.         printf(" biglietto gratis");
  14.         }
  15.         else if (eta<=18)
  16.          { printf("biglietto  costa 5$");}
  17.          else{
  18.             printf("biglietto costa 10$");
  19.             }
  20.    
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement