sir, can we use counter ++ instead of counter=counter+1
Problem in the ques where we have to print a+d..till ..a+10d
sir even though we dont write return 0; still the program runs correctly why is it so? isnt return 0; important.
It depends from compiler to compiler ,some will work fine but some will give error 
I advise u to always write return statements. 
If this resolves your query then please mark it as resolved 
Also from next time open new thread for different doubts 
