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

what is 31.75 rounded to the nearest tenth
what is 2222 divided by 20
What is equivalent to 0.05
Why have wildlife experts only estimated the number of endangered species in the world?
A concrete stepping stone measures 20 inches square. What is the area of 30 such tiles?
The sum of three consecutive integers is 42. Let x be the middle of the three integers.
Define light year and explain how and why light years are used to measure distances in the universe
4x - (9 - 3x) = 8x - 1
what is the primary reason for using career clusters A...To identify exactly what each person's career interest is B...To narrow down your choices for your car
mr.white can travel for 6 hours while taking 3 breaks of 10 mins each once he had to travel for 36 hours how many minutes in breaks did he take