How Many Times Will The Loop Shown Below Be Executed
How many times will the loop shown below be executed?Dim intQuantitySold As IntegerDim decTax As DecimalintQuantitySold = 1Do Until intQuantitySold = 5decTax = intQuantitySold * 0.07lstDisplay.Items.Add(“Tax Amount: ” & decTax.ToString())intQuantitySold += 1Loop
Since the value of the variable intQuantitySold starts from 1 and increments by 1 in every iteration, until the value reaches 5, the loop is executed 4 times, i.e when intQuantitySold = 1, when…
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
