0

To print

1 1 1 1 1 2 2 2 2 3 3 3 2 2 1

7th Mar 2019, 2:23 PM
vikas gupta
6 Respuestas
+ 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
7th Mar 2019, 2:40 PM
Yash🏁🔘
Yash🏁🔘 - avatar
+ 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
7th Mar 2019, 2:42 PM
Seniru
Seniru - avatar
+ 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
7th Mar 2019, 2:43 PM
Yash🏁🔘
Yash🏁🔘 - avatar
7th Mar 2019, 2:45 PM
Arup aich
Arup aich - avatar
0
plz send
7th Mar 2019, 2:29 PM
vikas gupta
0
another one 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1
7th Mar 2019, 2:29 PM
vikas gupta