Skip to content

Commit

Permalink
Create Pattern1.ccp
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakRodd authored May 13, 2024
1 parent 17a6380 commit ae13927
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Pattern1.ccp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include <iostream>
using namespace std;


void print1(int n){

int stars;

for(int i=n; i>=1; i--){

stars = i;

for(int j=stars; j>=1; j--)
cout<<"* ";

cout<<endl;
}

}

int main(){

int n;

cin>>n;

print1(n);




}

0 comments on commit ae13927

Please sign in to comment.