Skip to content

Commit

Permalink
Added new question in self learning
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranSiddhu committed Mar 5, 2022
1 parent 78eb5d0 commit 697ba5a
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
#define ld long double
#define el "\n"

void solution(){
int n;
cin >> n;

for(int i = 1; i < n; i++)
cout << i+1 << " ";

cout << 1 << el;
}

int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);

int t;
cin >> t;
while (t--)
solution();

return 0;
}

0 comments on commit 697ba5a

Please sign in to comment.