Computer Science, asked by mohinerawat1983, 7 months ago

WAP to input any two numbers. Extract the last digit i.e. unit digit of both the numbers and using ternary operator (? :) check whether they are same or different. Also write variable description.      (10)

Eg : input -> 217                                       eg : input -> 45

      input -> 87                                                 input -> 368

      output -> same                                         output -> no

plz tell the answer dont write foolish answer plz tell

Answers

Answered by aryaman7839
1

Explanation:

#Using python programming .

#Write a program to input two numbers and extract the last digit of both the numbers .

print ("Enter two digit number")

a=int(input("Enter first number"))

b=int(input("Enter second number"))

c=a//10

d=b//10

print ("Greater unit digit is")

m=a if a >b else b

print (m)

Similar questions