1 212 32123 4321234 543212345 in c

Solutions on MaxInterview for 1 212 32123 4321234 543212345 in c by the best coders in the world

showing results for - "1 212 32123 4321234 543212345 in c"
Jenna
19 Mar 2019
1#include <stdio.h>
2
3int main()
4{
5    int i, j, k, l;
6    
7    for (i = 1; i <= 5; i++)
8    {
9        for (j = 5; j > i; j--)
10        {
11            printf(" ");
12        }
13        for (k = i; k >= 1; k--)
14        {
15            printf("%d", k);
16        }
17        for (l = 2; l <= i; l++)
18        {
19            printf("%d", l);
20        }
21        printf("\n");
22    }
23
24    return 0;
25}
similar questions
queries leading to this page
1 212 32123 4321234 543212345 in c