Write a program that populates a LIST with random integers from 10-60, then calls a function that divides the list into two | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program that populates a LIST with random integers from 10-60, then calls a function that divides the list into two

Using C++

6th Jul 2022, 7:41 AM
Isaac Sule
2 Answers
0
I don't know well C++ but you should follow a strategy: 1- create an empty list of integer type. 2- create a loop to iterate over (1). 3- create a temporary variable holding a random integer. 4- assign (3) to (1) 5- return the (1) populated with random integers.
6th Jul 2022, 7:57 AM
Ervis Meta
Ervis Meta - avatar
6th Jul 2022, 8:48 AM
Isaac Sule