Replace all zeroes in an integer with 1
Filed under KPIT
The question
Given an integer, replace every occurrence of the digit 0 with the digit 1 and print the resulting number.
No write-up yet. Related questions below have one.
Related KPIT questions
Collected from public candidate posts and coding forums. Updated Nov 2026.