write the syntax of a for loop and also give an example
Answers
Answered by
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
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
English,
5 months ago
Social Sciences,
5 months ago
Computer Science,
10 months ago
Chemistry,
10 months ago
Math,
1 year ago
Math,
1 year ago