Quick actions

cmd+k|ctrl+k

Navigation

Languages

loop Do/While

Snippet info

Language

Scala

Visibility

public

Author

elivais777

Created

2024-12-02T07:14:06.967055Z

Updated

2024-12-02T07:15:52.806047Z

object DoWhileDemo {
  def main(args: Array[String]) {
    var counter: Integer = 1;

    do {
      println(counter);
      counter += 1;
    } while (counter < 5);
  }
}
INFO