This is the code:
`} else {
while (i != 1) {
std::cout << "Invalid command, please try againn";
std::cin >> i;
}`
How can I fix this??
I tried making it a do while loop and a for loop but it did’t work.
New contributor
Thank_47 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.