+ 1
How to display even number In java script using while loop)
13 Antworten
+ 2
Thank you😊
+ 1
I need help?!!
+ 1
I'll send you the code will you check it please? I tried but out doesnt show anything!!
+ 1
I'm sorry I'm not being able to post here
+ 1
My code is something like this
Var a =2;
While (a<=10)
{
If (a%2==0)
{
Document.write(a+"<br>") ;
a++;
}
}
+ 1
I need to display even number!! Using while loop!
+ 1
Didn't worked!
+ 1
Hello,
Couldn't another solution be :
var a=0;
while(a<=10){
document.write(a+"<br>");
a+=2;
} ?
+ 1
Use modulus fn with integer division ✨