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;}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here