Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Java
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.
Obada Mit
Programming language:
Java
2021-06-21 04:07:34
-2
Q:
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.
Danielillo
Code:
Java
2021-05-14 20:39:02
k = 0; do{ System.out.print("*"); k++; }while (k < 53);
-5
Tags
line
use
int
variable
con
loop
declare
var
print
Related
how to output sum of even numbers in java between two user values
java accept 2 integers from the user, and using a method add these numbers and print the result
java take arbitrary number of arguments
New to Communities?
Join the community