Computer Science, asked by jobrulhaque1, 7 months ago

write a Fortran program to find the circumference of a circle​

Answers

Answered by Anna1127
1

Answer:

AME: ARLENE GUEST C OC 3030 C LAB #1 - EXAMPLE OF A FORTRAN PROGRAM C C THIS PROGRAM CALCULATES THE CIRCUMFERENCE AND AREA OF A CIRCLE WITH C RADIUS R. C C DEFINE VARIABLE NAMES: C R: RADIUS OF CIRCLE C PI: VALUE OF PI=3.14159 C CIRCUM: CIRCUMFERENCE = 2*PI*R C AREA: AREA OF THE CIRCLE = PI*R*R C ******************************************************************** C REAL R,CIRCUM,AREA C PI = 3.14159 C C SET VALUE OF R: R = 4.0 C C CALCULATIONS: CIRCUM = 2.*PI*R AREA = PI*R*R C C WRITE RESULTS: WRITE(6,*) ' FOR A CIRCLE OF RADIUS', R, + ' THE CIRCUMFERENCE IS', CIRCUM, + ' AND THE AREA IS ', AREA C END

Similar questions