We help IT Professionals succeed at work.

Fortran 77 -calculate number of character entered

How do I write a Fortran program (Fortran 77) to calculate the number of character entered by the user?
Comment
Watch Question

Commented:
Loop:
    Interate Counter
reLoop until done

Commented:
(didn't this thread have a few comments in it a few weeks ago?)

Commented:
Loop:
   GetChar
   Iterate Counter
reLoop until done
Commented:
Alternatively, Read in an entire line, to buffuer
Now, Count all the characters that were read in

Difference is in when it is that you need to know the answer
ALso, is in the way files are opened, and how buffering is done

For one, I prefer binary, for another I perfer text. String. Depends also on thresholds, such as maxchar prior to cr, eol, eot etc

Explore More ContentExplore courses, solutions, and other research materials related to this topic.