Sum of first and last digit of a number Get link Facebook X Pinterest Email Other Apps Sum of first and last digit of a numberQUESTION DESCRIPTIONWrite a program to find the sum of first and last digits of a given number.a=int(input())l=a%10;f=awhile f>=10: f=f/10;print (int(l+f)) Comments
Comments
Post a Comment