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

Please help me, i can't do it and i'm lazy
A particular engine takes in 10,000 J of heat, does 2,000 J of work, and as it runs discharges heat. Its own energy is the same when it has finished as when it
Most stock characters are also what kind of character? A. Foil B. Anti-hero C. Flat D. Antagonist
Need help with Spanish work!!
Can someone please help me with this?
Point (a) lies on the graph of the equation 3y=2x-4. Find the value of a.
If I buy 1 steam game for $20, (USD) how many hours of playtime would make the purchase worth it?
1. Balance the following equations: (photo attached, just 1 a,b,&c)
Que hacen los muchachos? correct answer only Los muchachos trabajas Los muchachos trabajan Los muchachos trabajamos Los muchachos trabaja
A college has a student hangout called "The Lawn” where students play ultimate frisbee, soccer, or just hang out. The lawn is 84 ft long and 50 ft wide. One stu