var experience; var is_married; write("Enter years of experience: "); experience = read(); write("Are you married (yes/no): "); is_married = read(); if(is_married != "yes" && is_married != "no") { write("Error: your answer can be 'yes' or 'no' only."); } else if(experience >= 1 && is_married == "yes") { write("Your salary will be 1000$ per month."); } else if(experience >= 1 && is_married == "no") { write("Your salary will be 800$ per month."); } else if(experience < 1) { write("Sorry.. The job requires at least one year experience!"); }
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|