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 a recent survey of 974 voters, 724 indicated that they were in favor of a new city park, while the other 250 voters said that they were opposed. Using this
Why are glass cylinders provided over plastic cylinders
When a reader makes inferences based on the details provided to enable the ready to do what?
How did the development of efficient agricultural practices, including understanding the Nile River’s flooding patterns, change Egyptian work life?
A poem by a Postmodernist might not rhyme, and it might employ unconventional grammar and spelling. A poem by a _____, however, will follow an established forma
True or false: niacin is a B-complex vitamin.
what are two traits of psedoscience
The sales tax in Bill's state is 6%. Bill bought a Scion having a sales tax of $820. What was the cost of the car? Round to the nearest dollar. A. $13,666 B. $1
Alaine has 1 gallon of paint. She is going to pour it into a paint tray that measures 10 inches wide, 12 inches long, and 5 cm deep. (1 gallon = 231 in3, 1 inch
An element's atomic number is 63. How many protons would an atom of this element have?