Advertisement
7atoom

Task3 lab3

Jul 23rd, 2023
1,450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.15 KB | None | 0 0
  1. package com.example.myapplication
  2.  
  3. fun main(){
  4.     val s = "163.121.12.30"
  5.     for(i in s.indices){
  6.         println(s.split(".")[i])
  7.     }
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement