Question: 3.Write an if-else statement that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to
3.Write an if-else statement that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to the variable b. 5. Write nested decision structures that perform the following: If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2 6. Write an if-else statement that displays 'Speed is normal' if the speed variable is within the range of 24 to 56. If the speed variable's value is outside this range display Speed is abnormal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
