Question: Q2. Using Nested if-else statement, write a program asks user to enter age and marital status (Y or N) and then using following rules print

Q2. Using Nested if-else statement, write a program asks user to enter age and marital status (Y or N) and then using following rules print their place of service If employee is married, then he will work only in urban areas Otherwise, if employee age is in between 20 to 40 then he may work in anywhere, and if employee age is in between 40 t0 60 then he will work in urban areas only. And any other input of age should print "ERROR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
