My issue
My code
// Update the '_' in the code below to solve the problem
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int N;
cin>>N;
int A[N];
for(int i = 1; i <= N; i++)
{
A[i-1] = __;
}
// print the elements of array A
for(int i = 0; i < N; i++)
{
cout << ___ << " ";
}
cout << endl;
// print the elements of array A in descending order
for(int i = N-1; i >= 0; i--)
{
cout << ___ << " ";
}
cout << endl;
}
}
Learning course: C++ for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone