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

the length of a rectangular is one less than twice the width. Find the length + width, if the perimeter is 40
It costs $2.50 to rent bowling shoes. Each game costs $2.25. You have $9.25. Write and solve an equation to find out how many games you can bowl.
How are you feeling today
Why is Britney Spears insane? I’m graduated so my points are up for grabs cause I’ll never use them. I have to at least as a question with it though.
why did el patron save matt’s brain in the first place
f+1<5 please tyyyyyyyyyyyyyyyy
please help 10 points!
State whether a dilation with the given scale factor is a reduction or an enlargement. 3. k = 1.25 5.k=5/4 6.k=0.85
oh wow i had no idea that is a lot of employees i also want to know what types of programs the federal government fund for its citizens can you give me three ex
Can someone help me out with this question fast!?!?!