3x5w4rup

Tempareture C to F

Apr 19th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int c;
  5.     float f;
  6.     printf("Enter Celsius :");
  7.     scanf("%d",&c);
  8.     f = c * 9/5 + 32;
  9.     printf("Farenhite : %.2f",f);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment