Assignment | SoloLearn: Learn to code for FREE!

0

Assignment

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

+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?