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

How does the growing human population impact the Earth's natural resources?
Write an expression with a negative exponent that has a value between 0 and 1/2
Angle 1 and angle 2 are supplementary angles, and angle 1 and angle 3 are complementary angles. Given the measurement of angle 1 is 28 degrees less then angle 2
What conclusion can be drawn about the people of Athens based on the chart?
According to the Proclamation of 1763 at the end of the French and Indian War?
Which of the following does NOT describe a way in which the United States benefited from the completion of the Panama Canal? increased trade military presence
write 6/10 as a percent
how many lines of symmetry does a hart appear to have
What property is 36+14+29
How to solve A=2(L+W) in terms of W