Posts by larissa castro alves • 293 points
1 post
-
29
votes7
answers53067
viewsQ: Knowing if the number is odd or even
I wonder why nothing happens to my code. Even the variable n the alert appears, but then nothing else happens. var n = prompt("Digite um numero"); var total=n/2; if(n/2=0){ alert("Par"); }…
javascriptasked larissa castro alves 293