Académique Documents
Professionnel Documents
Culture Documents
Start
Temperature1 Temperature2
This is temperature conversion
program.
Proceed
X Y
no
Text1
While (Proceed == 1)
Fahrenheit = (9/5) x Y+32
Celsius = (X-32) / (9/5)
yes
end
Please select conversion:
1 – Fahrenheit to Celsius
Temperature in Fahrenheit is:
2 – Celsius to Fahrenheit Temperature in Celsius is: Celsius Fahrenheit
yes
no
Text1
yes
choice == 2 Temperature2
1 Thank You!!!!!
no
# include <stdio.h>
float temp1 (float x);
float temp2(float y);
text1();
main ()
{int proceed=1;
printf("*****||This is temperature conversion program||*****\n\n");
printf("Enter 1 to continue the program\n");
printf("Enter 2 to terminate the program\n");
scanf("%d",&proceed);
while(proceed ==1)
{ float temp_celsius,temp_fahrenheit;
int choice;
User enters 1.
User enters temperature in Fahrenheit 32.
User enters 1.
User enters 2.
User enters temperature in Celsius 0.