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!!