Given an int variable k that has already been declared, use a while loop to print a single line consisting of 97 asterisks. Use no variables other than k.
LANGUAGE: C++
CHALLENGE:
Given an int variable k that has already been declared, use a while loop to print a single line consisting of 97 asterisks. Use no variables other than k.
SOLUTION:
k = 97; while(k>0){ cout<<"*"; k--; }