Given an Integer variable k that has already been declared, use a Do…Loop While loop to print a single line consisting of 53 asterisks. Use no variables other than k.

Given an Integer variable k that has already been declared, use a Do…Loop While loop to print a single line consisting of 53 asterisks.  Use no variables other than k.

LANGUAGE: Visual Basic

CHALLENGE:

Given an Integer variable k that has already been declared,use a Do…Loop While loop to print a single line consisting of 53 asterisks.
Use no variables other than k.

SOLUTION:


k = 0
Do
    Console.Write("*")
    k += 1
Loop Until (k = 53)

Add comment