how to find even numbers?

I am trying to find even numbers from 0 to 100 but it is not working. even it not showing any error. can anyone help me to figure out?

<html lang="en">

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


var x = 1;
        while (x <= 100) {
            if (x % 2 == 0) {
            } else {


88 thoughts on “how to find even numbers?”