Sample output1: 20 random numbers from the set{0,10,20,30,40} are: 20 10 40 30 1
ID: 3613023 • Letter: S
Question
Sample output1:
20 random numbers from the set{0,10,20,30,40} are:
20 10 40 30 10 10 20 20 1030
20 0 30 20 10 40 10 20 2030
The Number 0 was repeated 1times
The Number 10 was repeated 6times
The Number 20 was repeated 7times
The Number 30 was repeated 4times
The Number 40 was repeated 2times
Press any key tocontinue
Sample output2:
20 random numbers from the set{0,10,20,30,40} are:
30 20 40 30 30 40 20 40 1010
0 40 30 20 40 10 30 40 030
The Number 0 was repeated 2times
The Number 10 was repeated 3times
The Number 20 was repeated 3times
The Number 30 was repeated 6times
The Number 40 was repeated 6times
Press any key tocontinue
Explanation / Answer
please rate - thanks #include #include using namespace std; int main() {int kt[5]={0,0,0,0,0}; int val,i; srand(time(0)); coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.