lefryskai
05/03/2017, 9:26 PMfun calc(str: String): Int {
var result: Int = 1
str.forEach {
//print("${it.toInt()}")
result *= it.toInt()
}
return result
}
But that return me the Ascii number of the char.
(Sorry for my English)