contestada

Write a Java program that asks the user to enter a 10-digit int as a typical U.S. telephone number, extracts the 3-digit area code, the 3-digit "exchange," and the remaining 4-digit number as separate int, prints them, and then prints the complete telephone number in the usual formatting with parentheses. If the user does not enter a 10-digit number, print an error message only using /,% operator

Respuesta :

Otras preguntas