asked 229k views
4 votes
Here is a sequence of patterns amde from circles

Here is a sequence of patterns amde from circles-example-1

1 Answer

6 votes

Answer:

Explanation:

for p = 1

c = p

p = p + 1

while(p < 7)

{

x = 0

c = 2p + x

x = x + 1

p = p + 1
}

I have written a pseudocode for the desired pattern, where

c, p and x are the variables

upon execution of this code:

p c

1 1

2 4

3 7

4 10

5 13

6 16

we will get this output which is exactly the one we have asked for!!

answered
User Pxtl
by
9.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.