#Write a program that reads one integer #if the integer is even, the program then reads #prices for 3 items and finds a total purchase amount #otherwise, the program prints the last digit of the number #Input: one integer first, and then could be 3 additional floats #Even number is a number that evenly divisible by 2, num%2 will #be 0 for even numbers num=int(input("enter integer ")) if(num%2==0): price1=float(input("enter first price ")) price2=float(input("enter second price ")) price3=float(input("enter third price ")) total=price1+price2+price3 print("The total price is ", total) else: if(num>=0): last_digit=num%10 print("last digit", last_digit) else: last_digit=(-num)%10 print("last digit", last_digit)