c++
4. Given the following for loop, write a main program for it and rewrite the code so that it executes exactly the same but using a while loop. Compile and run, show me the source code and the output screen.
for (i = 3; i < 18;="" i="i" +="">
cout < i*i=""><>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here