Question: Write an if-else statement that assigns 0 to x when y is equal to 10. Otherwise, it should assign 1 to x.
Write an if-else statement that assigns 0 to x when y is equal to 10. Otherwise, it should assign 1 to x.
Step by Step Solution
3.48 Rating (168 Votes )
There are 3 Steps involved in it
Answer ify10 x0 assigning 0 to x if y equals 10 else x1 assigning 1 to x otherwise ... View full answer
Get step-by-step solutions from verified subject matter experts
