Write a Fortran program to find the area of a circle
Answers
Answered by
2
Answer:
- PROGRAM circle_area. IMPLICIT NONE.
- ! reads a value representing the radius of a circle, ! then calculates and writes out the area of the circle.
- REAL :: radius, area. REAL, PARAMETER :: pi=3.141592.
- READ (*,*) radius. area = pi*radius*radius.
- WRITE (*,*) area. END PROGRAM circle_area
hope it helps ✌️
@supremepriya❤️
Similar questions