Advertisement
Igor2909

es3.c

Oct 16th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. main()
  5. {
  6.     int l; //litri
  7.     const float p = 1.70;
  8.     printf("Quanti litri di vino vuoi acquistare? :");
  9.     scanf("%d", &l);
  10.     float pt = l*p;
  11.     printf("Prezzo totale e' di %f euro \n", pt);
  12.     system("PAUSE");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement