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

Yogen Früz is a successful chain of frozen yogurt shops originating in Canada. Archeology Investments has an agreement with the Canadian firm that grants rights
what parts of canada appear to have relatively few resources
A large study of German children of Caucasian descent found that 46% have brown hair and that 25% have freckles. Nonetheless, you cannot conclude that becau
1.5 miles = ? Yards​
Kawai Corporation, which makes and sells 85,000 radios annually, currently purchases the radio speakers it uses for $8.00 each. Each radio uses one speaker. The
can someone please help!!???
Which of the following is NOT something that can be gleaned from a company's SWOT? How to improve a company's strategy by using company strengths and capabiliti
The diameters of bolts produced in a machine shop are normally distributed with a mean of 5.61 millimeters and a standard deviation of 0.04 millimeters. Find th
Biologists tagged 196 fish in a lake on January 1. On February​ 1, they returned and collected a random sample of 42 ​fish, 14 of which had been previously tagg
what was it like when german people immergrated to america