lammac

Chuyển đơn vị đo nhiệt độ C và F

Mar 31st, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main(){
  4.     float c, f;
  5.     scanf("%f", &c);
  6.     f = ( c * 9 / 5) + 32;
  7.     printf("%0.2f", f);
  8.     return 0;
  9. }
Add Comment
Please, Sign In to add comment