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
Get step-by-step solutions from verified subject matter experts
