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

Glassy and metallic are terms that describe what mineral property? A.luster B.color C.shape D.hardness
How to solve for vi in vf=vi+at?
How can understanding change of state help you to seprate a salt water solution
An airplane flies at 440 miles per hour. How fast is it flying in feet per second?
The high point of President Nixon’s foreign policy efforts was _____. A: his trip to China, which led to official recognition of that country B: bringing a “n
Giselle has $10,000. She could put it in a CD earning 2% interest, a tech stock earning an 18% return this year, a mutual fund losing 3% this year, or an index
What decimal is equal to 7/10 0.6 0.15 0.2 0.7 0.4 ?
What number is between 1 and 20 with factor of 5
75% of what number is 105
How were the experiences of Jamestown settlers and pilgrims alike?how were they different