write a qbasic program to find the average marks in five subjects and calculate them
Answers
Answered by
60
ANS:
CLS
INPUT"ENTER FIVE SUB MARKS";A,B,C,D,E
U=(A+B+C+D+E)/5
PRINT"AVERAGE IS";U
END
Answered by
49
- The basic formula for average is = Sum of observartion / Total no. observations.
- Following is the qbasic program to find the average marks of five subjects:-
Cls
Input " Enter marks of first subject" ;A
Input " Enter marks of second subject" ;B
Input " Enter marks of third subject" ;C
Input " Enter marks of fourth subject" ;D
Input " Enter marks of firfth subject" ;E
Let Sum = A+B+C+D+E
Let Average =Sum/5
Print" The sum=" ;Sum
Print" The Average marks is " ;Average
End
Similar questions