Question: Using a for loop write a program that sums the numbers from 1 to N where N is a positive integer input by the user.
Using a for loop write a program that sums the numbers from 1 to N where N is a positive integer input by the user. Output an error message if the number is neither an integer nor positive.

# This is starter code for HW#1 problem #4 # for loop to sum all numbers from 1 to N # N is input by a user N = int(input("Please enter an integer N: ")) if N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
