Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main(args: Array<String>) {
- var mo=0
- var myarry=Array<Int>(10){0}
- for (i in 0 until myarry.size){
- println("Enter the num")
- myarry[i]= readLine()!!.toInt()
- }
- println("Enter num")
- var num2= readLine()!!.toInt()
- for (b in 0 until myarry.size){
- if (myarry[b]==num2)mo++
- }
- println("the number $num2 is repeated $mo")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement