Skip to content

Commit 1846cb0

Browse files
committed
even + odd
1 parent fbb9f4c commit 1846cb0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

even.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function printevennum() {
2+
for (var i = 1; i <= 255; i++) {
3+
if (i % 2 === 0){
4+
console.log(i)
5+
}
6+
}
7+
}

odd.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function printoddnum() {
2+
for (var i = 1; i <= 255; i++) {
3+
if (i % 2 === 1){
4+
console.log(i)
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)