Advertisement
Genryuu

Celsius to Fahrenheit

Dec 6th, 2022
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. float F;
  2.     float C;
  3.    
  4.     p("Enter Fahrenheit: ");
  5.     s("%f", &F);
  6.    
  7.     C = 5.0/9.0*(F-32);
  8.    
  9.     system("clear");
  10.    
  11.     p("%.f°F is equal to %.1f°C", C, F);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement