/* @ToDo
Inverted Pattern
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
*/
#include <iostream>
using namespace std;
int main(){
#ifndef ONLINE_JUDGE
freopen("../asset/input.txt","r",stdin);
freopen("../asset/output.txt","w",stdout);
#endif
// Code here!!
int n; cin>>n;
for(int i=0;i<n;i++){
for(int j=1;j<=n-i;j++)
cout<<j<<"\t";
cout<<endl;
}
return 0;
}
Comments
Post a Comment