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

In 1957, what was the name of the dog sent in space ?
in the northern hemisphere, a compass will point at the.?
Need some help with math can someone please help me
The value of the variable that makes the equation true is called the
all of the following are true of weighted credit except A. It is given to students in dual enrolled,advanced,AP or IB courses. B. It helps improve your GPA if y
Goal Setting Let's assume for a few moments that you are not what we would call a "healthy" eater. You don't think about how the food you eat can affect you an
Identify the rhyme scheme and metric pattern of this poem
Sentence lacks parallel structure? A. We had a delicious breakfast of bacon and eggs in bread and butter. B. A doll, a video, and a wagon were the items on the
Do not answer until you see an image.
how much grams of sugar is in a bottle of sprite (20 FL OZ)