JS:
for (let i = 4; i <= 12; i++) {
if (i % 2 == 0) {
console.log( i );
}
Python:
var = list(range(4, 12, 2))
print(var)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
JS:
for (let i = 4; i <= 12; i++) {
if (i % 2 == 0) {
console.log( i );
}
}
Python:
var = list(range(4, 12, 2))
print(var)