What is the C code to print pattern 11111 12221 12321 12221 11111?

1 answer

Answer

1096628

2026-05-01 02:56

+ Follow

I assume you mean for any n get surrounding 1s, 2s, 3s and so on till the particular n is in center.

Try analyzing quarter by quarter. So, we need 4 counting variables - i, j, x, y.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.