Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input("How Many times do you want this repeat?\n-> "))
- count = 0
- a = b = rem = 0
- product = 1
- for i in range (1, n + 1):
- try:
- print(f"Iteration {i} : ")
- a = int(input("Enter Number 1: "))
- b = int(input("Enter Number 2: "))
- print()
- product = a*b
- rem = product%10
- if rem == 0:
- count +=1
- else:
- continue
- except ValueError:
- print("Only Integers please!")
- print(f"The Number of 0's in last places are {count}")
Advertisement
Add Comment
Please, Sign In to add comment