[Solved] how to ask for input again c++
[ad_1] int main() { string calculateagain = “yes”; do { //… Your Code cout << “Do you want to calculate again? (yes/no) ” cin >> calculateagain; } while(calculateagain != “no”); return 0; } Important things to note: This is not checked, so user input may be invalid, but the loop will run again. You need … Read more