Problem:-
To find the area of the circle.
How to run C program code
- Open turbo C++.
- click on File menu and select option new.
- Write C code in new file.
- Save file press F2 functional key filename.c(.c is extention of c file).
- Press CTRL+F9 to compile the C code.
- Press CTRL+F5 to show output according to the code.
Algorithm:-
Step1:- Start.
Step2:-Read radius,area,Ï€.
Step3:- area=Ï€*radius*radius.
Step4:- Display area.
Step5:- Stop.
Flowchart
C code to find the area of circle
0 Comments