PPPLLLLLLLSSSSSSS Answer Mee PLLLLLLSSSSSS
Re-write(convert) the following C++ code using do-while loop insteadof for-loop and write the program output.#include using namespace std;int main (){int i=1, sum= 0;cout < "\n\n="" display="" 10="" terms="" of="" natural="" number="" and="" their="">cout <>cout < "="" the="" natural="" numbers="" up="" to="" 10th="" terms="" are:="">for (;;){cout < i="">< "="">sum=sum+i;if(i<>{break;}I++;}cout < "\n="" the="" sum="" of="" the="" natural="" numbers="" is:=""><>}
}I++;
}
cout < "\n="" the="" sum="" of="" the="" natural="" numbers="" is:=""><>}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here