Input question

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
closed account (Dy7SLyTq)
inputting a letter?
No changing a integer with user input
closed account (Dy7SLyTq)
you mean use a variable multiple times for input?
yes
closed account (Dy7SLyTq)
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.
Topic archived. No new replies allowed.