Skip to content

Commit

Permalink
Create pattern.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Anoushka-Ghosh authored Oct 6, 2020
1 parent 26f4a92 commit a46e181
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pattern.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include<stdio.h>
int main()
{
int i,j,k,n;
printf("no.");
scanf("%d",&n);
for(i=0;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("1\n");
}
return 0;
}

0 comments on commit a46e181

Please sign in to comment.