victorialais

Conversão de temperaturas (graus Celsius para Fahrenheit)

Sep 24th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. main ()
  5.  
  6. {
  7.  
  8. float temperaturaC, temperaturaF;
  9. printf ("Digite aqui a temperatura em graus Celcius: ");
  10. scanf ("%f", &temperaturaC);
  11. temperaturaF = (9*temperaturaC+160)/5;
  12. printf ("Temperatura em graus Fahrenheit: %.2f", temperaturaF);
  13. getch ();
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment