The following C++ program executes infinitely. Identify the statements which are causing this program to run infinitely, correct the program to stop infinite execution of this program, and write the...


The following C++ program executes infinitely. Identify the statements which are causing this program to run infinitely, correct the program to stop infinite execution of this program, and write the output of the program after it is corrected.


#include
using namespace std;
int main(void)
{
int Number =6;
int iterator=0;
int L_cont = 0;
while(iterator<>
{
L_cont = iterator+1;
while(L_cont>0)
{
     L_cont++;
     cout<>
     }
        cout<>
      }
      return 0;
}



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here