Write a simple C program to convert temperature in Centigrade degrees to Fahrenheit degrees.
This post content:-
- Algorithm
- Flowchart
- C code
- Output
- Pdf notes
Algorithm:-
Step 1:- start.
Step 2:- declare variables celsius,far.
Step 3:- read variable celsius.
Step 4:- calculate the Fahrenheit degrees by using:-
far = (celsius * 9 / 5) + 32;
Step 5:- print the value of far.
Step 6:- END.
Flowchart:-
C code:-
Output:-
Try it yourself:-
Comments
Post a Comment