Not sure what numbers you exactly want to count, but the total loop count is in your case:
for(var i=0;i <=10;i++){
for(var j=0;j <=10;j++){
document.write('the number is: ' + (i + j));
}
}
Your initial code snipet looks wrong because you use
i
in the outer and inner loop which means that your loops will never end. You even declare
i
twice weach means that your runtime environment should throw an error without executing the code...
It would be good if you could explain better what numbers you want to count in order to get a better suggestion on how to count them ...