zubariainamilahi
zubariainamilahi zubariainamilahi
  • 24-10-2021
  • Computers and Technology
contestada

what is a for command? can u use a variable instead of a number in the for command!
​

Respuesta :

anonymoususer121 anonymoususer121
  • 24-10-2021

Answer:

A for loop is a block of code where a certain instruction repeats a certain amount of times.

Yes, you can use a variable instead of a number in a for loop.

Explanation:

For example, you're using a for loop and you want to repeat it a certain amount of times, but you want to take user input. You would ask the user for their input and assign it to a variable, then use that variable for the for loop.

Answer Link

Otras preguntas

what is one sixth of a right angle ??
Over time, the spoils system developed into a A. merit-based system. B.political reform movement. C.political machine system. D. civil service movement.
A population of mice has black or brown hair. The gene for black hair color (B) is dominant over brown (b). If 16% of the mice are homozygous black and 24% are
Who became president in 1974 following the resignation of his predecessor? A. Jimmy Carter B. Gerald Ford C. Ronald Reagan D. George H.W. Bush
In Ancient Egypt What Did Government Officials Do?
which number is between 0.5 and 5/8 A.1/4 B.8/28 C.9/16 D.19/25
The relationship between humans and their digestive bacteria can be described as... A) Commensalism B) Competition C) Mutualism D) Predation
what is the purpose of the declaration of independence?
which describes how probably war differs from a traditional war
Factor the trinomial: -2x²-16x-24