Advertisement
Fahim_789

CelciusTofahrenheit

May 16th, 2019
96
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. int main()
  3. {
  4.     float fahrenheit,celcius;
  5.     printf("Enter the celcius numbers : ");
  6.     scanf("%f",&celcius);
  7.     fahrenheit =(celcius * 9/5) + 32;
  8.  
  9.     printf("%.2f celcius = %.2f fahrenheit",celcius,fahrenheit);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement