Skip to content

cone patern#5

Open
akankshan30497 wants to merge 1 commit into090max:masterfrom
akankshan30497:patch-2
Open

cone patern#5
akankshan30497 wants to merge 1 commit into090max:masterfrom
akankshan30497:patch-2

Conversation

@akankshan30497
Copy link

/*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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant