What do you mean by infinite loop? Give suitable of any infinite loop in a c program
Answers
Answer:
A java program to print greater among three numbers using do while loop
Explanation:
ok
Answer:
In a programming language, there is a feature known as a loop, this helps in doing any repetitive task of a certain pattern, in a small block of a statement. The concept of every loop is, having an initial value of a variable, and with a particular time, the value is incremented or decremented. The variables current value is used as the constraint for the loop. If the condition provided is true, the loop executes and if the condition is not correct then the loop is terminated.
Explanation:
# include < iostream . h >
void main ( )
{
int n ;
cout << " Enter a number " ;
cin >> n ;
for ( int i = 0; i< 10 ; i - - )
{
cout << i << endl ;
}
}