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]
[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.
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
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/fortran/com...
I think that's Reddit formatting turning the asterisks into italics