Advertisement
bertao

rotina temp

Mar 22nd, 2019
76
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 <stdlib.h>
  3.  
  4. float Convcelsiusfare(float c)
  5. {
  6. float f;
  7. f =9.0 / 5.0 * c + 32;
  8. return f;
  9.  
  10. }
  11.  
  12. int main()
  13. {
  14. float f,c;
  15.  
  16. printf("digite temp em C:");
  17. scanf("%f",&c);
  18.  
  19. f =Convcelsiusfare(c);
  20. printf("F:%f",f);
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement