Question: using python Activity No. 8 Create a program that ask's the user to input an integer. Using looping, iterate from one to the inputted number

using python
Activity No. 8 Create a program that ask's the user to input an integer. Using looping, iterate from one to the inputted number to get the sum of all numbers. Since this is everything but three, if the number has the number 3 on it, rather than adding it to the total, you shall subtract that number to the total. Example Computation: User Input: 13 1+2-3+4+5+6+7+8+9+10+11+12-13 = 59 After the computation, determine whether the total is divisible by 3. If it is, divide it by 3. If it is not, leave as is. Display the total. Sample Input: 5 Expected Output: 3 Sample Input: 10 Expected Output: 49 Sample Input: 15 Expected Output: 88 Sample Input: 20 Expected Output: 178 Sample Input: 25 Expected Output: 247 Sample Input: 30 Expected Output: 109
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
