Computer Science, asked by arshadismail1973, 4 months ago

write a qb64 program using while wend loop to print the following series: 1, 9, 25, 49, 81, 121​

Answers

Answered by SabrinaHaque
1

Answer:

169

Explanation:

The series is (2n+1)^2, where n is a natural number, including 0.

When n = 0, number is 1.

When n = 1, number is 9.

When n = 2, number is 25.

When n = 3, number is 49.

When n = 4, number is 81.

When n = 5, number is 121.

The next will be n = 6, and the number will be 169.

Answered by modi8899
1

Explanation:

CLS

b = 1

WHILE b <= 5

   b = b + 1

   a = 1

   WHILE a <= 121

       a = a + (8 * b)

       PRINT a;

   WEND

WEND

END

maybe it is corret

Similar questions