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
3 Antworten
+ 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:..
+ 6
Before we can help you, please do a try by yourself first. Put this code in playground and link it here. Thanks!