Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

4 33 222 1111 222 33 4

0 votes
asked May 1, 2018 by anonymous
4

33

222

1111

222

33

4

1 Answer

0 votes
answered May 5, 2018 by mohana mona
#include <stdio.h>

int main()
{
    int i,j,n=4,k=1;
    for(i=1;i<=4*2-1;i++)
    {
        for(j=1;j<=k;j++)
        {
            printf("%d",n);
        }
        if(i<4)
        {
            n--;
            k++;
         }
        else
        {
            n++;
            k--;
        }
     printf("\n");
    }
}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...