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

In Flowers for Algernon, how do Charlie's "friends" react to him becoming smarter?
what is the purpose of citing textual evidence in a literary analysis essay? A) to show the reader that the writer is knowledgable B) to provide the central arg
Which undefined term is used to define an angle? line plane point ray
character of the E.T
CHECK MY ANSWERS?? Ustedes (pagar)_____________ my answer: pagan Usted (escuchar)_____________my answer: escucha Usted (visitar)_____________ my answer: visita
Why did Europeans of the 1400s and 1500s want to explore the world?
One way to test a mineral is to break it and see how many directions of ____ it has.
A baby required ventilation and chest compressions. after 60 seconds of chest compressions, the electronic cardiac monitor indicates a heart rate of 70 beats pe
Which career may be a good fit for you if you enjoy planning meals and learning about proper nutrition? (A.fitness instructor (B.physical therapist (C.medical r
Why does jackson think that the Cherokee will be better offfor in Indian territory