Write a program to read a string of 10 digit number, check whether the string contains a 10 digit number in the format XXX-XXX-XXXX where ‘X’ is a digit(Number Validation). Input and Output Format: Input consists…
Write a program to read a number, calculate the sum of odd digits (values) present in the given number. Check Sum of Odd Digits in java Input and Output Format: Input consists of a positive…