0
can a for loop have 2 integers, 2 conditions and 2 increments?
E.g. for ( int x= 2,int y=3;x>a,y>b;x++,y++){}
4 Antworten
+ 4
yes i think so
a loop can have multiple assignments,inc or dec but conditions shd be merged using && or ||…
0
Ok thanx I will try it out
0
yes , multiple initialization,condition & increments can be used but separated by comma (,)
0
thx