sahajjain01

08.Input temperature in Fahrenheit and convert into Celsius.

Aug 16th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. //Program to input temperature in Fahrenheit and convert into Celsius.
  2. #include<stdio.h>
  3. #include<conio.h>
  4.  
  5. void main()
  6. {
  7.     float temperature;
  8.  
  9.     clrscr();
  10.  
  11.     printf("Enter temperature in fahrenheit: ");
  12.     scanf("%f", &temperature);
  13.     printf("The temperature %f fahranheit in celsius is: %f", temperature, (temperature - 32) * 5 / 9);
  14.  
  15.     getch();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment