Replace digit ⬀
Given the number n, as well as digits a and b. Replace in this number every occurrence of the digit a to digit b.
Three numbers n, a, b (1 ≤ n ≤ 10⁹).
Print the resulting number. Do not print the leading zeros.
123118 1 5
523558
Given the number n, as well as digits a and b. Replace in this number every occurrence of the digit a to digit b.
Three numbers n, a, b (1 ≤ n ≤ 10⁹).
Print the resulting number. Do not print the leading zeros.
123118 1 5
523558