Advertisement
mdnurnobihosen

datastructure6.1

Jun 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. ///Home Work 6(i) @Nurnobi shanto
  2. #include<stdio.h>
  3. float Celsius(float a)
  4. {
  5.     float c=((5.0/9.0)*(a-32));
  6.     return c;
  7. }
  8. int main()
  9. {
  10.     float f,c;
  11.     printf("Enter Farhenheit :");
  12.     scanf("%f",&f);
  13.     c=Celsius(f);
  14.     printf("Celsius: %.2f",c);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement