Question: Given the following algorithm, indicate the value of the name total using the user input values in parts a and b below. in 1 in

Given the following algorithm, indicate the value of the name total using the user input values in parts a and b below.
in1 in2 total 0 IF in1> in2 THEN
WHILE in2< in1 total total + in2 in2 in2+1
ENDWHILE ELSE
WHILE in1< in2 in2 in21
total total +1 ENDWHILE
ENDIF
(a) What is total if the user gives 2 for in1 and 7 for in2?(2 points)

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!