DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Loops — Example 72

Quick explanation + ready code for: Loops.

Clojure Loops Back to examples
Back to language
Syntax: Loops in Clojure. ID: #72

Code

let s=0;
for(let i=1;i<=11;i++) s+=i;
console.log(s);

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.