for (i = 1; numero >= i; i++) { for (k = i; k < numero; k++) { printf("*"); } for (g = 1; g <= i; g++) { printf("%i", g); } for (g = 1; g <= i; g++) { printf("%i", g); } for (k = i; k < numero; k++) { printf("*"); } }
If I enter in program 5, this program displays, for example, such a miracle
****11**** ***1212*** **123123*** *12341234* 1234512345
It is necessary that instead of repeating inverted numbers. Do not throw a solution, tell me how to do it! Thank you.