0
Assignment
What to do, If I want to ask the utilisator to give numbers that the program will assigne them to the array?
4 Respostas
+ 2
Use a loop.
for(int i=0;i<arrLen;i=i+1)
array[ i ] = getInput()
That's pseudocode. Specify your programming language next time to get better feedback.
+ 1
Thanks a lot.. I meant in C++
+ 1
It's not a real function.
In c++ use cin.
0
Sorry I am a beginner, I didnt understand the getInput, how you use it?