Write a function that returns an integer: the decimal value of a string of
digits that it reads using getchar. End of the string is ‘\n’. For example, if it reads 1 followed by 4 followed by 6, it will return the number 146; if read 14d0r, it will return number 140. 2. Write a function that returns true if an input string is a palindrome of each other. A palindrome is a word that reads the same backwards as it does forwards e.g ABBA