asked 227k views
4 votes
Write a qbasic to read name,school and class of three different students and print in the screen​

1 Answer

5 votes

CLS

FOR i = 1 TO 3

INPUT "Enter student name: ", name$

INPUT "Enter school: ", school$

INPUT "Enter class: ", class$

PRINT "Student #" + LTRIM$(STR$(i)) + ":"

PRINT "Name: " + name$

PRINT "School: " + school$

PRINT "Class: " + class$

NEXT i

END

answered
User Dldnh
by
8.5k points

Related questions

1 answer
5 votes
122k views
asked Feb 2, 2021 73.5k views
Vivek Kodira asked Feb 2, 2021
by Vivek Kodira
8.1k points
1 answer
5 votes
73.5k views