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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!