I coded sometimes in c an another IDE and I’m used to do the for loop like this:
for(int i =0; i<n; i++)
or something like that. Now it tells me that it’s not allowed and I have to assign i before the loop, and it doesn’t even work when i assign it before the loop.
it tells me that a semicolon is required after the i++ and that’s irrational. And it doesn’t compile properly.
can anyone help me?