Question: What will be calculated and displayed by the following code: Dim V1 as Long Dim V2 as Long V1=35 V2=15 While V1 V2 if V1

What will be calculated and displayed by the following code: Dim V1 as Long Dim V2 as Long V1=35 V2=15 While V1<>V2 if V1 > V2 then V1=V1-V2 Else V2=V2-V1 End if Wend Msgbox V1 a. 15 b. 1 c. 5 d. Nothing because this is an infinite loop

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!