Advertisement
Guest User

Android Live Infinite String

a guest
Aug 19th, 2020
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.44 KB | None | 0 0
  1. import java.util.*
  2.  
  3. // Complete the func function below.
  4. fun func(s: String, n: Long): Long {
  5.     return 0
  6. }
  7.  
  8. fun main(args: Array<String>) {
  9.     val scan = Scanner(System.`in`)
  10.     println("0. Введите бесконечную строку:")
  11.     val s = scan.nextLine()
  12.  
  13.     println("1. Введите ограничитель:")
  14.     val n = scan.nextLine().trim().toLong()
  15.  
  16.     val result = func(s, n)
  17.  
  18.     println(result)
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement