# Help me in solving AOCV202 problem

### 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

@imdeepanshu09
U have to fill the blanks with the correct syntax and logic .
Like for this question u have to fill the blanks like this:-

``````// Solution as follows

#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] = i;
}
// print the elements of array A
for(int i = 0; i < N; i++)
{
cout << A[i] << " ";
}
cout << endl;
// print the elements of array A in descending order
for(int i = N-1; i >= 0; i--)
{
cout << A[i] << " ";
}
cout << endl;
}
}

``````