I have 2 doubts in this code
when i declare value variable inside the loop itself , the output comes out all numbers equal to 2 . Why is that so?
when i had written val=val+1; before cout <<value<<" ";
my output started with instead of 1.
why did it happen?
