I need to write program that will take first input as 'i' and this loop need to go until first input is less or equal to second input. what I had written but seems not working:
function provjeri() {
var i = document.getElementById('prvi').value;
var b = document.getElementById('drugi').value;
var c = "";
for (; parseInt(i) <= parseInt(b) ; i+=2) {
c+=i ;
}
document.getElementById('rez').innerHTML = parseInt(c);
}