write a qb64 program using while wend loop to print the following series: 1, 9, 25, 49, 81, 121
Answers
Answered by
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
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
Computer Science,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Math,
10 months ago
Social Sciences,
10 months ago