Computer Science, asked by rishu5145, 1 year ago

What do you mean by infinite loop? Give suitable of any infinite loop in a c program

Answers

Answered by RAJESHRAOSAN
0

Answer:

A java program to print greater among three numbers using do while loop

Explanation:

ok

Answered by sailorking
0

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 ;

             }

}

Similar questions