Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  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 :

Twitter
Back To Top

facebook main

Powered by Blogger.