Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

While Loops

< >
Example from 1 languages: JavaScript
let times = 10 while (times) {times--} console.log("done")
Example from 1 languages: Lua
while true do print("hello") end
Example from 1 languages: C3
while (int x = foo(); x > 0) { sum += x; }
Example from 1 languages: Cyber
while fiber.status() != #done: res = coresume fiber count += 1
Example from 1 languages: Jule
for my_condition { // ... }
Example from 1 languages: Speedie
while true "hello"
*

Languages with While Loops include JavaScript, C, Python, Java, Perl, Ruby, PHP, C#, R, Bash, PowerShell, Rust, Swift, Scala, Lua, Kotlin, CoffeeScript, Objective-C, Julia, Dart, Ada, Pascal, Solidity, Crystal, Reason, Groovy, F#, OCaml, Chapel, VHDL, ABAP, Verilog, C3, SystemVerilog, AutoIt, Dylan, Maxima, X10, Angelscript, Apex, Cyber, Jule, JS++, fp, Speedie, Q#, hecl, nimrod

*

Languages without While Loops include progsbase, Veryl, HOPE, SAKO

*

View all concepts with or missing a hasWhileLoops measurement

*

Read more about While Loops on the web: 1.

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll