nikolas_serafini

Lista 1 - Exercício 26

May 22nd, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     float far,cel;
  7.  
  8.     printf("Entre com a temperatura desejada, em celsius : \n"); scanf("%f",&cel);
  9.  
  10.     far = (9/5)*cel + 32;
  11.  
  12.     printf("%f Fahrenheit\n",far);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment