answersLogoWhite

0

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.

User Avatar

Anonymous

3y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
More answers

c code to print

1

11

111

1111

11111

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the C code to print pattern 11111 12221 12321 12221 11111?
Write your answer...
Submit
Still have questions?
magnify glass
imp