Computer Science, asked by tejasarcot, 10 months ago

write the syntax of a for loop and also give an example

Answers

Answered by Anonymous
3

Answer:

hey!

Loop statements are enclosed with a second bracket. This bracket in not needed if there is only one statement.

for (

<initial statement(s)>;

<Condition expression>;

<Repeat step(s)>

)

{

<Loop statement(s)>;

hope it will be helpful ✌️

Answered by MsBombshell
2

ᏗᏁᏕᏇᏋᏒ:

  • ❇️ For loop in C++ with example. A loop is used for executing a block of statements repeatedly until a particular condition is satisfied. For example, when you are displaying number from 1 to 100 you may want set the value of a variable to 1 and display it 100 times, increasing its value by 1 on each loop iteration.

hᎾᏢᎬ ᎥᏆ hᎬᏞᏢs mᎪᏒᏦ Ꭺs ᏆhᎬ bᏒᎪᎥᏁᏞᎥᎬsᏆ... ❤️

Similar questions