Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. float cwf(float);
  5.  
  6. int main()
  7. {
  8.     float a;
  9.     printf("Podaj tem. w stopniach Celcjusza: ");
  10.     scanf("%f", &a);
  11.  
  12.     float f=cwf(a);
  13.     printf("Dana temp. wynosi %0.2f stp. Fahhrenheita.", f);
  14.  
  15.     return 0;
  16. }
  17.  
  18. float cwf(float a)
  19. {
  20.     return (9.0/5.0*a +32);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement