0
What it use sum =sum+1;
What it use sum =sum+1; if it dont have any function why do we need to put it in the code
3 Answers
+ 2
This increments sum by one.
0
thnx
0
you can use it for counter based loops e.g.:
for (int i=0;i<10;){
do somthing ....
i=i+1;
// or you write i++;
}