arrow_forward
همه ارسالها
جزئیات ارسال کد#360
برای پسندیدن وارد شوید
1#include <iostream>
2
3using namespace std;
4
5int main()
6{
7 int n; cin >> n;
8 int a[n];
9 int i=0;
10 while (i < n)
11 {
12 cin >> a[i];
13 i++;
14 }
15 int x = n-1;
16 while (x >= 0)
17 {
18 cout << a[x] <<" ";
19 x--;
20
21 }
22
23 return 0;
24}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8