Write a JavaScript code to print all the odd members from 15 backwards to 3.
Answers
Answered by
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
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