Advertisement
mdnurnobihosen

datastructure6.2

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