Q2)
- print series of number as 2000 , 1800 , 1600 , ........ , -2000 and also print how many terms will be there for covering the series from 2000 to -2000.
Ans 2.
var count = 0;
for (var i = 2000; i >= -2000; i -= 200) {
count++;
console.log(i);
}
console.log(count);