Problem in the ques where we have to print a+d..till ..a+10d

sir, can we use counter ++ instead of counter=counter+1

Hey @aaliyah_beg
Yes u can use that .
If this resolves your query then please mark it as resolved :slight_smile:

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 :slight_smile:
I advise u to always write return statements. :slight_smile:

If this resolves your query then please mark it as resolved :slight_smile:

Also from next time open new thread for different doubts :slight_smile: