Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

To create a data file MARK.DAT and stores name, address and marks in any three subjects for five students. (Qbasic)

  • Write a program to create a data file "MARK.DAT" and stores name, address and marks in any three subjects for five students. (Qbasic)
CLS
OPEN "MARK.DAT" FOR OUTPUT AS #1
FOR I = 1 TO 5
    INPUT "Enter name"; N$
    INPUT "Enter address"; A$
    INPUT "Enter mark in subject 1"; S1
    INPUT "Enter mark in subject 2"; S2
    INPUT "Enter mark in Subject 3"; S3
    WRITE #1, N$, A$, S1, S2, S3
NEXT I
CLOSE #1
END

Share :

X
Back To Top

facebook main

Powered by Blogger.