Ariellelyn9593 Ariellelyn9593
  • 03-07-2019
  • Computers and Technology
contestada

You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.

a.
equal sign

b.
comma

c.
period

d.
semicolon

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

comma

Explanation:

The for loop is used to execute the specific statement again and again until the condition is false.

The syntax:

for(initialization;condition;increment/decrement)

{

  statement;

}

In the initialization, we an initialize more than one variable by using the 'comma' as separator.

similarly for condition and increment/decrement part as well.

for example:

for(int x = 0,y = 0;x<5,y<5;x++,y++)

{

  statement;

}

we can used as many as possible by using comma

Answer Link

Otras preguntas

Solve and explain thank you, Greatly appreciated
what is the answer for 2 divided by 78
For those diagnosed with a panic disorder what is the source of their fear/anxiety? a. Being around enclosed spaces b. Having additional panic attacks c. Bein
What new policies and programs did FDR introduce to improve the economy?
In what way does the setting of the story foreshadow what follows? Explain your answer in detail and provide examples.
4. Calcium oxide is used to make soil less acidic. What is its formula?
Lisa bought 18 packs of cola. Each pack had 8 cans. She drank 6 cans . How many cans left
Does the sentence need a comma? Pick the right option. Jenna Ortega lives on the moon, but she calls home often.
write as a decimal rounded to the nearest tenth. 45/19
The following are the steps of performing chest compressions on a child.