Rewrite the following code, converting the while loop to a do-while loop:
char doAgain = 'y';
int sum = 0;
cout <>
while ((doAgain == 'y') || (doAgain == 'Y'))
{ sum++;
cin >> doAgain;
}
cout <><><>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here