Advertisement
jacob_segundo

fahrenheit celsius c

Mar 17th, 2021
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.     float f, fahrenhite, celsius;
  4. printf("Entre com a temperatura em Fahreinhite: \n");
  5. scanf("%f",&fahrenhite);
  6. f=fahrenhite-32;
  7. celsius=f/1.8;
  8. printf("A temperatura em celsius e %.2f",celsius);
  9.  
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement