Question: num _ points 1 and num _ points 2 are read from input. Write one if statement and one if - else statement: If num

num_points1 and num_points2 are read from input. Write one if statement and one if-else statement:
If num_points1 is less than 5, then output 'num_points1 is less than 5.'
If num_points2 is greater than or equal to 40, then assign num_points2 with 4.
Otherwise, output 'num_points2 is less than 40.'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!