113k views
5 votes
Write a QBasic program to find your total marks in all the subject​

User Adam Nowak
by
5.2k points

1 Answer

3 votes

Answer:

CLS

INPUT " Enter the student's name " ; NS

INPUT " Enter the marks obtained in first subject " ; MFS

INPUT " Enter the marks obtained in second subject ";MSS

INPUT " Enter the marks obtained in third subject " ; MTS

INPUT " Enter the out total marks " ; OTM

LET TM = MFS + MSS + MTS

LET P = TM / OTM * 100

PRINT " Student name is " ; NS

PRINT " The total marks obtained is " ; TM

PRINT " The percentage is " ; P

END

Step-by-step explanation:

User Aercolino
by
5.1k points