Skip to content
Snippets Groups Projects
Commit 77b1d4ac authored by Mohamed Yasar arafath K M's avatar Mohamed Yasar arafath K M :speech_balloon:
Browse files

initial commit

parent 820f109c
No related branches found
No related tags found
No related merge requests found
#include<stdio.h>
#include<stdlib.h>
int main(int argc,char const *argv[])
{
int i,j,k,space,row;
row = atoi(argv[1]);
for (i = 0; i < row; i++)
{
for (space = 0; space<row-i; space++)
{
printf(" ");
}
k=i;
for ( j = 1; j <= i; j++)
{
printf("%d ",k);
k+=1;
}
k=k-2;
for (j= 1; j < i; j++)
{
printf("%d ",k);
k-=1;
}
printf("\n");
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment