Question

write a while loop that will multiply up the even numbers from 4 to 22 (...

write a while loop that will multiply up the even numbers from 4 to 22 ( including 4 and 22) and print out their product
0 0
Add a comment Improve this question Transcribed image text
Answer #1

code and output(python)

main.py 1 total=1 2 i 4 3. while i<23: 4. if i%2==0: total=total i 6 i:=1 7 print(total) 00 vauw 40874803200 ... Program fini

Code for copying

total=1
i=4
while i<23:
if i%2==0:
total=total*i
i+=1
print(total)
  

Add a comment
Know the answer?
Add Answer to:
write a while loop that will multiply up the even numbers from 4 to 22 (...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT