Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Program with function
Post Body

Hello,

I wrote a program for area perimeter of circle. I'm getting error. The program is:

function circle(r)

real :: r, A, c

pi = 3.14159

A = pir*2

c = 2.0pir

end function circle(r)

the error is: syntax error in END FUNCTION statement at (1)

Request help in finding error & fixing

Comments

Remove (r) from the last line

[not loaded or deleted]

I think that's Reddit formatting turning the asterisks into italics

[not loaded or deleted]

Move the function outside of the program block. You also will need to call the function from within the program block.

Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
604
Link Karma
389
Comment Karma
205
Profile updated: 3 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 months ago