Using your preferred IDE or this online IDE, create a program that asks the user for the number of male and female students registered in a class/section. The program should display the total number of students and the percentage of males and females in the class.



Sample output:

Enter the number of males: 36

Enter the number of females: 17

Number of students = 53

Male = 67.92%

Female = 32.08%​

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.