PROGRAM-14


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


Algorithm
·                     Start
·                     Declare i, j, n as integer
·                     Write("the number of rows")
·                     Read(“the number of rows”)
·                     for(i=1;i<=n;i++)
·                     Write("in next line")
·                     for(j=1;j<=i;j++)
·                     Read(“value of i”)
·                     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: