Question: Input instruction: Take Celsius temperature as input from the user.Output instruction: Show RΓ©aumur and Fahrenheit value of the input temperature.
The formula for conversion: C/5=(F-32)/9=R/4
Solution:
The formula for conversion: C/5=(F-32)/9=R/4
Solution:
| #include<stdio.h> int main() { double C,F,R; printf("Enter The Celsius Temperature Value :"); scanf("%lf",&C); F = (9*C)/5+32; R = (C*4)/5; printf("\nFahrenheit Value is = %.2lf\n",F); printf("\nRΓ©aumur Value is = %.2lf\n",R); return 0; } |


Post a Comment
0Comments