Answer to Question #267274 in Visual Basic for Nicole

Question #267274

Dim j = 0


While j = 0


j = j - 1


Console.Write(“Hello”)


j = j + 1


End While



Question: If this code is executed, How many times will “Hello” be printed out?



1
Expert's answer
2021-11-17T06:29:27-0500

The program will display the  message "Hello" unlimited times, because variable "j" is never zero.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS