Two input m and n.if unit digit of m is not equal to n then concat two numbers else print m without unit digit | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Two input m and n.if unit digit of m is not equal to n then concat two numbers else print m without unit digit

Sample input -152 and 2 output be -15

17th Jul 2020, 10:08 AM
Gowthama Swetha
Gowthama Swetha - avatar
3 Answers
+ 1
What is unit digits mean here..? Number of digits or unique number of digits.. According to description, -152, 2 -152 unit digits 3 , (unigue digits also 3). not equal to 2 so output : cancat -1522 What is without unit digits output? Ex:..
17th Jul 2020, 11:56 AM
Jayakrishna 🇮🇳
+ 6
Before we can help you, please do a try by yourself first. Put this code in playground and link it here. Thanks!
17th Jul 2020, 10:19 AM
Lothar
Lothar - avatar
17th Jul 2020, 10:25 AM
Gowthama Swetha
Gowthama Swetha - avatar