answersLogoWhite

0


Best Answer

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

Lvl 2
3y ago
This answer is:
User Avatar
User Avatar

Lulu Pfannerstill

Lvl 1
3y ago
Absolutely!
More answers
User Avatar

Wiki User

12y ago

c code to print

1

11

111

1111

11111

This answer is:
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
Related questions

Write a c program to print the following pyramid 1 121 1231 12321 1234321?

123454321


Write a unix program to print print a pattern?

echo 'print a pattern'


How do you display 1 11 111 1111 11111 in qbasic using FOR.NEXT?

cls a =1 for i = 1 to 5 print a; a = (a*10)+1 next i end


What is the most common lip print?

type II pattern or branching pattern is the most common pattern


How do you generate patterns in gw basic?

write the following on gw basic in capital 10 rem "to print a pattern" 20 cls 30 print tab(30) * 40 print tab (29)*** 50 print tab (28)***** 60 end 70 run and there will be a pattern


To write shell program to check the given number and its reverse are same?

echo "enter the number" if [ $# -ne 1 ] then echo "Usage: $0 number" echo " I will find reverse of given number" echo " For eg. $0 12321, I will print 12321" exit 1 fi n=$1 rev=0 sd=0 while [ $n -gt 0 ] do sd=`expr $n % 10` rev=`expr $rev \* 10 + $sd` n=`expr $n / 10` done echo "Reverse number is $rev"


What happens after the pattern of an individual print has been matched?

After the pattern of an individual print has been matched, it can be used for identification purposes, such as in forensic investigations or security access systems. The matched print can then be compared against other prints in a database to determine a potential match or identity of the individual.


What pattern is on the gloves Rosalie wears in the kitchen?

The gloves that Rosalie wears in the kitchen have a floral pattern.


What is Niall Horans favorite pattern?

I am pretty sure it is zebra print if that is what you meant


Pattern skinny pants?

im wearing leopard print skinnies ATM :]


How can you paint your bike zebra print?

The best way and the easiest way to do this is to print off a zebra print pattern, cut out the black parts and to use the rest, hold the paper up to your bike and spray black over it,creating zebra print!


What is core print?

(metallurgy) A projection on a cylindrical casting pattern which supports a core.Source: Answers.comA projection made in the pattern is called core print .it is used to form a core seat in the mould . the core is correctly seated in this seat