Number 2 is the correct answer
Answer:
Explanation:
Let's do this in Python, first we need to convert the number into string in order to break it into a list of character, then we can replace the kth character with d. Finally we join all characters together, convert it to integer then output it
def setKthDigit(n, k, d):
n_string = str(n)
d_char = str(d)
n_char = [c for c in n_string]
n_char[k] = d_char
new_n_string = ''.join(n_char)
return int(new_n_string)
Enter would create a new line, thus allowing you to enter a paragraph, on some applications you can use "Shift+Enter" if it is an IM application like Skype.
Answer:
ja ok it is so eassssy.........................