Skip to content

Commit ab022ae

Browse files
added new break problem solved
1 parent 501b657 commit ab022ae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

D. Loop/Break/century.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Problem-1
2+
3+
Write a loop 1 to 200. Use break to exit the loop once you find 100.
4+
*/
5+
// Solution-2 by for loop
6+
for(let j=1; j<=200; j++){
7+
if(j<=100){
8+
break;
9+
}
10+
console.log(j);
11+
}

0 commit comments

Comments
 (0)