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 

A Program To Input Data In A File "std.dat"

  • Make a program to input the name, class and roll no, marks of english and science of a student and store in a sequential file "std.dat". (qbasic code)
  • CLS
    OPEN "std.dat" FOR OUTPUT AS #1
    INPUT "Enter name"; n$
    INPUT "Enter class"; cl
    INPUT "Enter roll"; r
    INPUT "Enter marks in english"; en
    INPUT "Enter marks in science"; sc
    WRITE #1, n$, cl, r, en, sc
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.