Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop

const n = 7; 

for(let i = 0; i <= n; i++) console.log(i);

// output -> 0, 1, 2, 3, 4, 5, 6, 7 
Source by www.codewithharry.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
4+5 =