URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Learners Tech
  HTML https://learnerstech.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Question Board
       *****************************************************
       #Post#: 18--------------------------------------------------
       Question 2
   DIR By: Karthikeyan
       Date: July 7, 2017, 2:58 am
       ---------------------------------------------------------
       Sample input: 4
       Sample output:
       0
       101
       21012
       3210123
       432101234
       
       Try this....
       #Post#: 21--------------------------------------------------
       Re: Question 2
   DIR By: MohanKestrel
       Date: July 10, 2017, 12:18 am
       ---------------------------------------------------------
       I think i got a answer.
       #include<stdio.h>
       #include<conio.h>
       void main()
       {
       int a,i,j,k;
       printf("Enter the number:");
       scanf("%d",&a);
       for(k=0;k<=a;k++)
       {
       for(i=k;i>0;i--)
       {
       printf("%d",i);
       }
       for(j=0;j<=k;j++)
       {
       printf("%d",j);
       }
       printf("\n");
       }
       }
       Is it right?
       #Post#: 22--------------------------------------------------
       Re: Question 2
   DIR By: Karthikeyan
       Date: July 10, 2017, 12:25 am
       ---------------------------------------------------------
       Yup dude&#9996;&#9996;
       *****************************************************
       Page 1 of 1