Given an int 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: JAVA

CHALLENGE:

Given an int 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;
while (k < 88){
   System.out.print("*");
   k = k + 1;
}