It's a pretty rookie question. Here is my code
double jury;
jury = double.Parse(Console.ReadLine());
for (int i = 0; i < jury ; i++)
{
Console.ReadLine();
}
How can I define the input inside the loop so I can use the input data from the additional inputs for math calculations. It's a vote system and the first variable is the jury count - each jury member votes for a number 1-10. The idea is that the jury is dynamic from 1 to 100,000. Any ideas are welcome.
More: Here is the idea.
-> When you have for example 3 jury members
-> You input 3 on the first row
-> You get 3 new inputs where your jury vote for candidates ( numbers 1 to 10 )
-> In this case the votes are 1, 3, 3
The idea is to parse all this information and output the winner which in our case is "3".