+ 1

How to display even number In java script using while loop)

2nd Aug 2020, 9:15 AM
Yato
Yato - avatar
13 Answers
+ 2
Thank you😊
2nd Aug 2020, 10:28 AM
Yato
Yato - avatar
+ 1
I need help?!!
2nd Aug 2020, 9:24 AM
Yato
Yato - avatar
+ 1
I'll send you the code will you check it please? I tried but out doesnt show anything!!
2nd Aug 2020, 9:27 AM
Yato
Yato - avatar
+ 1
I'm sorry I'm not being able to post here
2nd Aug 2020, 9:34 AM
Yato
Yato - avatar
+ 1
My code is something like this Var a =2; While (a<=10) { If (a%2==0) { Document.write(a+"<br>") ; a++; } }
2nd Aug 2020, 9:40 AM
Yato
Yato - avatar
+ 1
I need to display even number!! Using while loop!
2nd Aug 2020, 9:41 AM
Yato
Yato - avatar
+ 1
Didn't worked!
2nd Aug 2020, 9:59 AM
Yato
Yato - avatar
+ 1
Hello, Couldn't another solution be : var a=0; while(a<=10){ document.write(a+"<br>"); a+=2; } ?
3rd Aug 2020, 10:46 PM
DANIEL HUANG
DANIEL HUANG - avatar
+ 1
Use modulus fn with integer division ✹
4th Aug 2020, 1:35 AM
Sanjay Kamath
Sanjay Kamath - avatar