Question: Homework 4 about Loops: Write a program that receives an integer input from the user and call it n. Use a for loop, an if

 Homework 4 about Loops: Write a program that receives an integer

Homework 4 about Loops: Write a program that receives an integer input from the user and call it n. Use a for loop, an if condition, and a continue keyword, to find the summation of all numbers that are not a multiple of 3 , from 1 to n, including 1 and n and print the result. For instance, the output of your program for 9 , should be 27 and for 17 should be 108 . You can get an input from user and convert it to an integer using a = int(input('Please enter an integer:'))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!