Write a program that reads a phone number, then removes all letters, and prints the resulting text.
Regexps in use
Sike, that's the wrong number!
Report a typo
Sample Input 1:
+wta1-90AWAWA4-9waht12twa-0wa2-12Sample Output 1:
+1-904-912-02-12Sample Input 2:
+what6-1is12-9l1ove0-51-1i1iSample Output 2:
+6-112-910-51-11Write a program in Kotlin
fun main() {
val number = readln()
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.