0
To print
1 1 1 1 1 2 2 2 2 3 3 3 2 2 1
6 ответов
+ 2
#include<stdio.h>
void main()
{
int i,j,n;
printf("Enter the no of lines\n");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=n-i+1;j++)
{
printf("%d", j);
}
printf("\n");
}
}//second
+ 2
vikas gupta please show us your attempt first. You are the one who need to code future and therefore you need to practice yourself
+ 2
#include<stdio.h>
void main()
{
int i,j,n;
printf("Enter the no of lines\n");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=1;j<=i;j++)
{
printf("%d", i);
}
printf("\n");
}
}//First
0
plz send
0
another one
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1