Check out example codes for "Given an int variable k that has already been declared, use a do...while loop to print a single line consisting of 53 asterisks. Use no variables other than k.". It will help you in understanding the concepts better.

Code Example 1

k = 0;
do{
   System.out.print("*");
   k++;
}while (k < 53);

Learn ReactJs, React Native from akashmittal.com