Preview:
fun main() {
    meldtekst(" Hallo allemaal wat fijn dat je er bent" )
}


fun meldtekst( tekst: String) {
    
    var lengte = tekst.length
    
    doeSterretjes(lengte)
    
    println( tekst )
    
    doeSterretjes(lengte)
    
}
    fun doeSterretjes(aantal:Int) {
        for (i in 1..aantal) {
            print("*")
        }
        print("\n")
    }


    
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter