Computer Science, asked by JayaSinha675, 1 year ago

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 AditiSinha23
7

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

Hope it helps :)

Answered by Sangitasinha
3
28 * 50 / 100

22 * 50 / 100
Hope this helps. please mark me as brainlist and follow me.
Similar questions