logo codesdope

Ask user to enter age, sex ( M or F ), marital status ( Y or N ) and then using following rules print their place of service.

   rajesh644

Ask user to enter age, sex ( M or F ), marital status ( Y or N ) and then using following rules print their place of service.
if employee is female, then she will work only in urban areas.

if employee is a male and age is in between 20 to 40 then he may work in anywhere

if employee is male and age is in between 40 t0 60 then he will work in urban areas only.

And any other input of age should print "ERROR".


Answers

Write your answer
Close

Welcome.please sign up.

Close

Welcome.please login.