Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you use python. Write a program that asks the user to input positive 10 integers. Your program must validate each integer as it is
Can you use python.
Write a program that asks the user to input positive 10 integers. Your program must validate each integer as it is entered, forcing the user to give a value that is positive. (You shall not assume that the values are positive.) Once you know that a number is positive, print it as output. and then move on to the next input. After the last tenth positive number is printed, print the word 'Done". That's it! Ex: if the input is then the output should be because 8,4,0, and -1 are not positive. As in the last lab, you should avoid writing 10 input statements; try to do the entire assignment with a set of two nested while or for loopsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started