Computer Studies

Write a program in QBASIC to make a name sticker which includes your name, class, roll no., subject and school using INPUT statement. Display the output in the given format:

Name    :
Class   :
Roll No.:
Subject : 
School  :

QBASIC

QBASIC: Input Statement

51 Likes

Answer

Cls
Input "Enter name"; N$
Input "Enter class"; C$
Input "Enter roll no. "; RN
Input "Enter Subject "; SUB$
Input "Enter school name "; S$
Print "Name     : "; N$
Print "Class    : "; C$
Print "Roll No  : "; RN
Print "Subject  : "; SUB$
Print "School   : "; S$
End

Output

Enter name? Mishi
Enter class? VI-A
Enter roll no.? 23
Enter Subject? Computer
Enter school name? City Montessori School
Name     : Mishi
Class    : VI-A
Roll No  : 23
Subject  : Computer
School   : City Montessori School

Answered By

19 Likes


Related Questions