PBWaffles3062 PBWaffles3062
  • 21-01-2021
  • Computers and Technology
contestada

A loop should output 1 to n. If n is 5, the output is 12345. What should XXX and YYY be? Choices are in the form XXX / YYY. cin >> n; for (XXX; i++) { cout << YYY; }

Respuesta :

ajeigbeibraheem
ajeigbeibraheem ajeigbeibraheem
  • 22-01-2021

Answer:

[tex]i = 0; i < n / i + 1[/tex]

Explanation:

Given that:

a loop output 1 → n

if n = 5

output = 12345

n = scnr.nextInt();

for [tex](XXX; i++)[/tex]

{

System.out.printIn(YYY);

}

XXX / YYY is [tex]i = 0; i < n / i + 1[/tex]

Answer Link

Otras preguntas

Which of the following would NOT be an example of foreshadowing? A, a frame of a door that was accidentally left open. B, something that a character says. C,a f
Your company just sold a product with the following payment plan: $50,000 today, $25,000 next year, and $10,000 the following year. If your firm places the paym
Why did the first Americans migrate from Asia to Americans?
The following natural events will cause primary succession to occur: * 1 point glacier movement and volcanoes wild fires and controlled burns floods and hurrica
(b) What major biological concepts, in addition to evolution and ecology, are unifying principles shared between the two diciplines?
The measure of an angle is 59 times the measure of its supplementary angle . What is the measure of each angle
what color do galaxies appear if they are moving towards us
How do tattoos affect the world
When galaxies move away from us they appear to have a "red shift" in color. Explain why this happens.
After making his confession, Stephen feels: a. Happy c. Holy b. Hypocritical d. A and C