Question: in python, use only the for or the while loop Write a program that asks the user for a sequence of positive integers, then it
in python, use only the for or the while loop
Write a program that asks the user for a sequence of positive integers, then it prints a number with the smallest sum-digits, and its position in the sequence (line1, line 2, etc.) Note: If there is more than one number with the same minimum sum-digits, your program should output either one. Your program should interact with the user exactly as demonstrated below Execution example: How many numbers do you wish to enter? Enter a sequence of 5 positive integers, each in a separate line: 521 2674 32 1121 792 1121 is a number with the smallest sum-digits. You entered it on line 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
