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.

22 lines
380 B

#include <bits/stdc++.h>
using namespace std;
int main() {
int a[10];
for (int i = 0; i < 10; ++i) {
cin >> a[i];
}
int temp = a[0];
for (int i = 1; i < 10; ++i) {
a[i - 1] = a[i];
}
a[9] = temp;
//输出
for (int i = 0; i < 10; i++) {
cout << a[i] << " ";
}
cout << endl;
return 0;
}