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.
.
.
Click on the title for the solution
.
.
k=1;
while (k<98)
{cout<<"*";
k++;}
.
Click on the title for the solution
.
.
This is the answer:
:
k=1;
while (k<98)
{cout<<"*";
k++;}
Comments
Post a Comment