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

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
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