Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kichloo authored Jun 13, 2020
1 parent e2b13da commit 0dc3508
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Day 2/Day 2_3.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include<iostream>
using namespace std;
int main()
{
int n,x,s=-1;
cin>>n;
for(int i=n;i>=1;i--)
{
int k=1,j;

for(j=0;j<i;j++)
{
cout<<k<<" ";
k++;
}

for(j=0;j<s;j++)
{
cout<<"*"<<" ";
}
s+=2;

cout<<"\n";
}
}

0 comments on commit 0dc3508

Please sign in to comment.