Write a program in QBasic to enter your name and the marks obtained in 10 subjects. Display the sum and average on the screen along with name.
Answers
Answered by
2
CLS
INPUT "ENTER YOUR NAME" ;N
PRINT "HI" ;N
PRINT "ENTER THE MARKS OF 10 SUBJECTS"
INPUT A, B, C, D, E, F, G, H, I, J
PRINT "MR." ;N
PRINT "SUM IS" ;A+B+C+D+E+F+G+H+I+J
V=(A+B+C+D+E+F+G+H+I+J) /10
PRINT "AVERAGE IS" ;V
END
PLZ MARK AS BRAINLIEST
Similar questions