Question: Write two if conditionals as detailed here. The first if statement must evaluate if the first element of nums _ vec is greater

Write two "if" conditionals as detailed here.
The first if statement must evaluate if the first element of nums_vec is greater than or equal to 4. If it is, then subtract 4 from the first element of nums_vec, saving this new value to that first element of nums_vec.
In the second if statement, evaluate if the first element of nums_vec is lesser than the second element of nums_vec. If it is, then assign the value of 1(a logical true) to the variable first_lesser_equal_second. If it is not, then first_lesser_equal_second should have a value of 0(a logical false).

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 Databases Questions!