0

Can someone please tell me that how can I modify this code so that it can also take input num like 086 and give right answer

https://code.sololearn.com/c1Y0S7OLJ7l4/?ref=app

28th Apr 2021, 10:18 AM
Harsh Pratap Singh
Harsh Pratap Singh - avatar
3 Antworten
+ 2
You need to take the input as string, AFAIK there's no way to reserve zero on the head or tail when you take input as number.
28th Apr 2021, 10:54 AM
Ipang
+ 1
Me also thinking to use string but it thought may be there will be some another way that's why I asked
28th Apr 2021, 11:15 AM
Harsh Pratap Singh
Harsh Pratap Singh - avatar
+ 1
Thanks for telling
28th Apr 2021, 11:15 AM
Harsh Pratap Singh
Harsh Pratap Singh - avatar