We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Arrays Introduction
- Discussions
Arrays Introduction
Arrays Introduction
Sort by
recency
|
1338 Discussions
|
Please Login in order to post a comment
int main() { int n; cin >> n; int list[n]; for (int i=1; i<=n; i++){ cin >> list[i - 1]; } for (int i=n; i>0;i--){ cout << list[i-1] << " "; } return 0; }
include
include
include
include
include
using namespace std;
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
int a; cin>>a; int n[a]; for(int i=0; i>n[i]; } for(int i = a-1 ;i>=0;i--){ cout<
include
using namespace std;
int main() { int n; cin>>n; int arr[n]; for(int i=0;i>arr[i]; }
}