Professional Documents
Culture Documents
Get the input Celsius value from the user. Implement the formula to convert Celsius to fahrenhiet. Print the converted fahrenhiet value. Stop the program.
PROGRAM #include<stdio.h> #include<conio.h> void main() { float cel,faren; clrscr(); printf("ENTER THE CELCIUS VALUE..."); scanf("%f",&cel); faren=(1.8*cel)+32; printf("THE FAHRENTEIET VALUE OF THE GIVEN %f CELCIUS VALUE IS %f",cel,faren); getch(); } OUTPUT ENTER THE CELCIUS VALUE... 23 THE FAHRENTEIET VALUE OF THE GIVEN 23.000000 CELCIUS VALUE IS 73.400002 RESULT Thus the program was created and executed successfully.