what is use of for loop?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / swathi
it is a loop which can have 3 conditions like
1)initiating a value to a variable
2)incrementation/decrementation
3)and a specific condition
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kannan.p
for loop use is one are more then printing in printup
statements.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / keshav.gadde
for loop is executed as long as condition is true and
process the loop until condition is fail.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / raj gunda
for is used to 'finite' number of times repeat the
statements
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / murugasundari
for loop is used to repeate the process for certain number
of time s known.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / gunasekhar
for the repeated eecution of a statement or a block we use
for loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / madhu
testing the condition more than one time.when it gets true
the loop will be finished.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / narendra singh
to execute group of code ,selection of code again and again
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister
What is a stl vector?
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....
Assume I have a linked list contains all of the alphabets from "A" to "Z?" I want to find the letter "Q" in the list, how does you perform the search to find the "Q?"
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
differentiate between private, public and protected data members of the class using example.
what is template and type convertion
5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3
Write a program in C/C++ to implement reader- writer problem
What is Constructor
write a program to convert a decimal number in to its equivalent binary number?
c# support late binding or early binding.