
please wait
|
|
choice
into an array and introduce a second loop. Like so:
|
|
|
|
1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 1 You picked me! 1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 2 You picked me! 1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 1 You picked me! 1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 3 Hello, thanks Choice #1 picked 2 times. Choice #2 picked 1 times. Choice #3 picked 1 times. Choice #4 picked 0 times. |
Ok, I got that to work, but it only prints the number I inputed. How can I have it print all of it? So it prints... Man Aunt Uncle Woman or whatever order they entered it. |
|
|
1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 1 You picked me! 1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 2 You picked her 1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 2 You picked her 1 - Man 2 - Woman 3 - Aunt 4 - Uncle Enter Selection: 4 Hello, I am voting GOP Man picked 1 Woman picked 2 Aunt picked 0 Uncle picked 1 |