There are 28 boys and 22 girls in the class .Write a program in QBASIC fo find the percentage of boys and girls in the class
Answers
Answered by
1
this is your answer.I hope you like it
Attachments:
Answered by
6
CLS
LET B = "28"
LET G = "22"
LET TS = B+G
LET PB = 28/TS *100
LET PG = 22/TS *100
PRINT "Percentage of boys " ; PB
PRINT " Percentage of girls " ; PB
END
Similar questions