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

In 1100 the holy Roman Empire covered most of?
Which term describes a person on the far right of the political spectrum? A. liberal B. moderate C. radical D. reactionary
Gary bought an MP3 player at a 20% discount sale for $40. What was the original price of the MP3 player?
Who led the Mormons to present-day Utah in search of religious freedom? Washington Gladden Charles Finney Joseph Smith Brigham Young
In which type of ecological relationship does each participant benefit the other organism? A. competition B. mutualism C. commensalism D. symbiosis
Complete the square: a^2 - 2a - 8=0
The length of a rectangle is 2 cm less than 7 times the width. The perimeter is 60 cm. Find the width and length.
Which of these events were reflective of the Cold War era? Cuban Missile Crisis Korean War Vietnam War All of the above
PLEASE HELP!!!!!!! What technological development during the 1930s allowed for the collection of more and better undersea data and, therefore, the creation of n
Help with maths homework please! Solve each of the following pairs of simultaneous equations by first changing the subject of one of the equations to gi