#Write a program that reads 10 positive three digit numbers and prints the #last digits of all these numbers. You may assume that input consists of 10 #positive integers between 100 and 999. #Discussion: counter-controlled repetition def main(): counter=0 while(counter<10): num=int(input("enter three-digit number ")) if(num>=100 and num<=999): print(num%10) else: print("not valid number") counter=counter+1 main()