Write a python program that first asks the user how many numbers should be entered. Then the program will read that many numbers from the user, and print the numbers which are multiples of 5 or 7. For example, if user input is 5, your program should read 5 numbers and check if they are multiples of 5 or 7. You must use loops to solve this task.
Sample Input:
No. of Inputs = 5
1
Expert's answer
2021-09-07T23:21:41-0400
N=int(input("How many numbers should be entered: "))
numbers=[]foriinrange(N):
n=int(input())
numbers.append(n)
count=0forx in numbers:
ifx%5==0 or x%7==0:
count=count+1print("No. of inputs: ", count)
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments