Monday, 4 November 2019

There are 17girls and 21 boys in class. WAP to find percentage of boys and girls.
CLS
LET G = 17
LET B = 21
T = G+B
GP = G/T *100
BP = B/T * 100
PRINT " Girls percentage =";GP
PRINT " Boys percentage ="; BP
END

No comments:

Post a Comment