In my case i have to get N no. of inputs from user as per they entered. i mean,
Please enter size of an array:
and if the user enter 3 or whatever as he like, then the program should take 3 inputs from the user in a single line like
1 2 3
and also if he enters greater than 3 or what he enters the program should warn him about the input he given.
is there any way to do????
my inputs are:
Enter size of an array : 5
my outputs should be like this:
1 2 3 4 5
and the main thing is that.......... it should not ask user each and every time to enter 5 input and also it should check that the user entered correct no. of inputs.
PS: please dont mark this as "Duplicate". I searched a lot and found no answer. that's why asking here.