0

made a code which prints all the input numbers as an array, can it be reduced?

https://code.sololearn.com/cpRxqPXlmUW6/?ref=app

13th Jan 2020, 3:07 PM
Ariz imam
Ariz imam - avatar
2 odpowiedzi
+ 2
int a[50], n; cin >> n; for(unsigned x = 0; x < n; cin >> a[x], x++); for(unsigned x = 0; x < n; cout << a[x] << endl, x++);
13th Jan 2020, 5:28 PM
rodwynnejones
rodwynnejones - avatar
13th Jan 2020, 5:50 PM
Ariz imam
Ariz imam - avatar