answersLogoWhite

0

Print "Type the upper limit (n) ?"

Input n

K = -1

WHILE K < = n

K = K + 2

Sum = Sum + K

WEND

Print "The sum of all odd numbers up to "; n; "is "; Sum

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
BeauBeau
You're doing better than you think!
Chat with Beau
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

Add your answer:

Earn +20 pts
Q: 1 plus 3 plus 5 plus 7n how will you do this program?
Write your answer...
Submit
Still have questions?
magnify glass
imp