Sike, that's the wrong number!

Report a typo

Write a program that reads a phone number, then removes all letters, and prints the resulting text.

Sample Input 1:

+wta1-90AWAWA4-9waht12twa-0wa2-12

Sample Output 1:

+1-904-912-02-12

Sample Input 2:

+what6-1is12-9l1ove0-51-1i1i

Sample Output 2:

+6-112-910-51-11
Write a program in Kotlin
fun main() {
val number = readln()
// write your code here
}
___

Create a free account to access the full topic