Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/*INPUT=>10
OUTPUT=>
/
#include<conio.h>
#include<stdio.h>
int main()
{
int n,i,j,k,y,x;
printf("enter a no.");
scanf("%d",&n);
for(i=(n/2);i>=1;i--)
{
for(j=(n/2);j>=i;j--)
{
printf(" ");
}
for(k=i;k>=1;k--)
{
printf(" ");
}
printf("\n");
}
for(i=2;i<=(n/2);i++)
{
for(j=i;j<=(n/2);j++)
{
printf(" ");
}
for(k=1;k<=i;k++)
{
printf("* ");
}
printf("\n");
}
return 0;
}