DEV Community

Amit Prajapati
Amit Prajapati

Posted on

Write the code to print the odd numbers ?

for(let i=1;i<=15;i++){
    if(i%2){
        console.log(i,'is the odd number`)
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)