Advertisement
adventuretimeh

angolo in gradi

Nov 21st, 2019
202
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. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. int main(int argc, char *argv[]) {
  6.     int G,P,S;
  7.     int ampiezza;
  8.     printf("gradi");
  9.     scanf ("%d",&G);
  10.     printf("primi");
  11.     scanf("%d",&P);
  12.     printf("secondi");
  13.     scanf("%d",&S);
  14.     ampiezza=(G*60*60)+(P*60)+S;
  15.     printf("l ampiezza dell angolo espressa in secondi vale %d",ampiezza);
  16.    
  17.  
  18.    
  19.    
  20.    
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement