Question: Assume: int days; int month; Write an if... else statement that assigns days the value of 30 if the value of month is 4, 6,
Assume: int days; int month;
Write an if... else statement that assigns days the value of 30 if the value of month is 4, 6, 9, or 11 and assigns a value of -1 to days if month is has any other value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
