what is use of for loop?

Answer Posted / geetha

for loop use is more then one calculation or process can be
performed, for example:
for(int i=0;i<5;i++)
{
printf("%d",i);
}
In the above example the printf statement can be excuted in
five times.
Output:0 1 2 3 4

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stl in c++ with example?

634


write a program to convert a decimal number in to its equivalent binary number?

2084


What is a list in c++ stl?

696


Explain stl.

907


In what scenario does the Logical file and Physical file being used?

2328






How does an stl file work?

656


What are the components of stl?

626


What are stl algorithms?

627


What is stl stack?

665


Is string part of stl?

681


totoo po ba ang manga aliens!

2340


To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

1785


What does stl stand for in basketball?

646


how to use C++?

2067


What is a standard template library (stl)?

649