Two questions! The first is how can I make it so that an average program can figure out the average of any set of numbers inputed by the user without the user having to say how many numbers they are going to put in. You have to declare variables so how to you declare variables when you don't know how many there will be?
I'm also trying to make a program that figures out if a number is prime. I have no idea how to this. Ne help? Thank you.


P.S. Please don't say "Google it" I've googled and I've googled and I can't Google no mo' Thnx