var a = +prompt('a'), b = +prompt('b'); while(a < b) { alert(a); a += 2; }
function f(){ var small= +prompt('small'); var big= +prompt('big'); while (small<big) { if ( small%2 ) alert(small); small++; } } f()