IvoSilva

[PROG1] Ficha 2 | Exercício 2

Nov 20th, 2011
107
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. {
  4.   float temp ;
  5.   printf ("Qual é a temperatura ? ");
  6.   scanf ("%f",&temp);
  7.   printf ("%0.2f ºC = %0.2f K\n%0.2f ºC = %0.2f ºF\n" , temp , temp + 273.15 , temp , ((temp * 9) / 5) + 32);
  8.   return 0 ;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment