155.A
sequential data file “STD.TXT” contains name and marks in three different
subjects of some students. Write a program to display only fail student’s
records assuming pass marks 40.
OPEN
"STD.TXT" FOR INPUT AS #1
CLS
WHILE
NOT EOF (1)
INPUT #1, B$, C, D, E
IF C < 40 AND D <40 AND E <40 THEN
PRINT B$, C, D, E
WEND
CLOSE
#1
END
No comments:
Post a Comment