Doubt with operator

0

To solve this simple algorithm when I came across a silly question, there on line 4, does that even mean < or <= ? In the case for(k=4;k<7;k+=3) or (k=4;k<=7;k+=3) ?

Thank you.

    
asked by anonymous 03.06.2017 / 22:43

1 answer

1

The line:

para k de 4 ate 7

It's similar to

between 4 and 7 

That is, the number has to be within a certain range of values. which would be 4, 5, 6 e 7

In this case, a for(k=4; k<=7; ....

    
03.06.2017 / 23:01