Computer Science, asked by JayaSinha675, 11 months 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
3

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 ronnie37
1

there are 50% of students

Similar questions