Given an integer variable k that has already been declared, use a While loop to print a single line consisting of 88 asterisks. Use no variables other than k.

Given an integer variable k that has already been declared, use a While loop to print a single line consisting of 88 asterisks.  Use no variables other than k.

LANGUAGE: Visual Basic

CHALLENGE:

Given an integer variable k that has already been declared,use a While loop to print a single line consisting of 88 asterisks.
Use no variables other than k.

SOLUTION:


k = 0
Do While (k < 88)
    Console.Write("*")
    k += 1
Loop

Add comment