Guest User

Untitled

a guest
Mar 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (){
  4.  
  5. float celsius, fahr;
  6. int c = 167;
  7.  
  8. printf("Digite uma temperatura em %cC : ", c);
  9.  
  10. scanf("%f", &celsius);
  11.  
  12. fahr = celsius*(9.0/5.0)+32;
  13.  
  14. printf("%3.f%cC e o mesmo que %3.f%cF", celsius, c, fahr,c );
  15. }
Add Comment
Please, Sign In to add comment