Computer Science, asked by sunitagupta54637, 1 year ago

Write a JavaScript code to print all the odd members from 15 backwards to 3.

Answers

Answered by Anonymous
5

Explanation:

<script type=”text/javascript”>

function printOddNumbers(){

var counter;

for(counter=15;counter<=15;counter=counter-1)

{

if(counter%2!=0)

{

document.write(counter+”<br/>”);

}

may be its help u

}

}

printOddNumbers();

</script>

Answered by shubham4395
4

Answer:

<script type=”text/javascript”>

function printOddNumbers(){

var counter;

for(counter=15;counter<=15;counter=counter-1)

{

if(counter%2!=0)

{

document.write(counter+”<br/>”);

}

may be its help u

}

}

printOddNumbers();

</script>

I Hope You guys Understand

Similar questions