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

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ReneRene
Change my mind. I dare you.
Chat with Rene

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