Print the right half Pyramid in C | Part 24

Опубликовано: 15 Октябрь 2024
на канале: Syed Ali
42
1

put here hash include put here less sign stdio.h put here greater sign
put here hash include put here less sign conio.h put here greater sign

int main()
{int i,j,k,n;
printf("enter the number of rows :");
scanf("%d",&n);
for(i=1;iput here less sign=n;i++)
{
for(j=i;jput here less signn;j++)
{
printf(" ");
}
for(k=1;kput here less sign=i;k++)
{
printf("*");
}
printf("\n");
}
getch();
return 0;
}