Write a program in java to accept a number and display that number after removing all the zeroes (0). | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program in java to accept a number and display that number after removing all the zeroes (0).

answer me with a simple code

28th Jun 2017, 3:40 PM
Kaustav Gupta
Kaustav Gupta - avatar
1 Answer
+ 1
Python: print(input().replace('0', ''))
28th Jun 2017, 6:41 PM
Igor B
Igor B - avatar