haleygreene5085 haleygreene5085
  • 09-03-2020
  • Mathematics
contestada

Given an int variable k that has already been declared, use a do-while loop to print a single line consisting of 97 asterisks. Use no variables other than k.

Respuesta :

fahadisahadam
fahadisahadam fahadisahadam
  • 13-03-2020

Firstly we declared the variable k which is integer(means give variable a value) and then use do-while iteration(loop) to print asterisks in a single line.

now the statements will be:

k = 0;

do {

     system.out.print ("*");

     k = k + 1;

     }

while ( k < 97 );

Answer Link

Otras preguntas

What does a reader learn about a story by its tone
Solve x-6y = 11 for y​
I want to complete Table 1.I will MARK AS BRAINLIEST.Thank you​
There are some parallelograms that are not rectangles
What was Al-Ma'mun’s contribution to the Islamic Golden Age?
A cork weigh 2.5 gf in air. When tied to a sinker , the total weight is 20 gf in water. If the sinker alone weighs 25gf in water, find the density of the cork
The Half-Way Covenant adopted by Puritans in 1662
Board of directors of 'Fairdeal limited' has formulated a policy for human resources development. According to this policy, certain standards will have to be ta
NEED HELP ASAP Which of the following statements is true? A) All people who are deaf want their hearing fixed. B) Special devices alert deaf drivers to eme
Guys, please help me and tell me how you found the answer! If a gas has a pressure of 1.69 atm at a temperature of 300 K, what will the pressure change to if t