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

User Dldnh
by
7.8k points