PROGRAM-12


// To generate the output of type
//3 2 1
//2 1
//1
#include
#include
void main()
{
clrscr();
int i,j,n;
printf("enter the number of rows:");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
printf("\n");
for(j=i;j>=1;j--)
{
printf("%d",j);
}
}
getch();
}



Algorithm

·                     Start
·                     Declare i, j, n as integer
·                     Write("the number of rows")
·                     Read(“the number of rows”)
·                     for(i=n;i>=1;i--)
·                     Write("in the next line")
·                     for(j=i;j>=1;j--)
·                     Read(“the value of j”)
·                     Stop



#vpsinghrajput

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

1 comments: