Complete the following code so it adds up all even positive numbers up to 300 (number 300 is included) and prints it. Hi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Complete the following code so it adds up all even positive numbers up to 300 (number 300 is included) and prints it. Hi
Complete the following code so it adds up all even positive numbers up to 300 (number 300 is included) and prints it. Hint: don't forget to increment number at the correct indentation level. Submit the.py file in manaba R+. Name the file the following way: ip.cx43.<student id number>.py. number - 1 total - 0 while number #complete the while header if (number % 2) = 0: #checking the number is even with the modulo operator print(total)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!