题解 | #逆序输出#
逆序输出
http://www.nowcoder.com/practice/bb66c27cb7aa48f9ba7d9f88e4068285
#include <iostream> using namespace std; int main() { int a[10] = { 0 }; for (int i = 0; i < 10; i++) { cin >> a[i]; } for (int i = 9; i >= 0; i--) { cout << a[i] << " "; } cout << endl; }