Hello everyone, i was just wondering if this is possible :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#include <iostream>
using namespace std;
int main()
{
cout << "Pick A or B";
int choice;
cout << "Choice: ";
cin >> choice;
cout << "Pick C or D";
cout << "Choice: ";
cin >> choice;
return 0;
}
|
Last edited on
No changing a integer with user input
you mean use a variable multiple times for input?
yeah, but fyi, this would have been easier to run through the compiler and test it your self
i actually just did that, i thought of it after.