How to take some unknown number of integers from input and display them on the console?
The number of values will be given through console.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well the prototype for main is:
main(void) or
main(int argc, char *argv[]);
This are the command line arguments of the program
you can iterate through them with something along this lines
Untested but should be enough to get you going.