Assignment | Sololearn: Learn to code for FREE!



What to do, If I want to ask the utilisator to give numbers that the program will assigne them to the array?

5/3/2020 12:51:07 AM

Maryam Ben

4 Answers

New Answer


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.


Thanks a lot.. I meant in C++


It's not a real function. In c++ use cin.


Sorry I am a beginner, I didnt understand the getInput, how you use it?