Temperature Conversion

SemiColon
By -
0



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:   
#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; }
Tags:

Post a Comment

0Comments

Post a Comment (0)