Question: 7. Write a Java program that asks the user to input the age and gender (M for male, F for female) of 10 rabbits. Your

7. Write a Java program that asks the user to input the age and gender (M for male, F for female) of 10 rabbits. Your program should count the number of female and male rabbits and print the results on the screen. by using while loop Sample Input/Output Enter the age and gender of 10 rabbits: 3 M 1 M : 5 M Male Rabbits = 4 Female Rabbits = 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
