You are on page 1of 1

AIM Develop a c program to convert the given Celsius value to Fahrenheit. ALGORITHM: 1. 2. 3. 4. 5. Start the program.

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.

You might also like