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
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
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