学习进度-12

Scala-while循环
var i = 6
while (i > 0) {
    i -= 1
    printf("i is %d\n",i)
}

 


do while
var i =1
do {
    i += 1
    println(i)
}while (i<5)

 

 

posted on 2020-02-12 18:31  方木Fengl  阅读(127)  评论(0编辑  收藏  举报

导航