You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int x[100], c = 0;
|
|
|
|
int main() {
|
|
for (int i = 0;; i++) {
|
|
cin >> x[i];
|
|
if (x[i] == 0) break;
|
|
c = i;
|
|
}
|
|
for (int j = c; j >= 0; j--)
|
|
cout << x[j] << " ";
|
|
return 0;
|
|
} |