There are 28 boys and 22 girls in your class. Write a program in QBASIC to find the percentage of boys and girls in the class
Answers
Answered by
17
Boys = 28
Girls = 22
Total students = 28+22=50
Percentage of boys in class is =
28/50×100= 56%
Percentage of girls in class is =
22/50×100= 44%
HOPE IT HELPS U. ...
Answered by
26
CLS
INPUT " Enter the total number of students " ; TS
LET B = 28
LET G = 22
LET PB = 28/50*100
LET PG = 22/50*100
PRINT " Percentage of boys " ; PB
PRINT " Percentage of girls " ;PB
END
Similar questions