Doubt with operator

Asked

Viewed 30 times

0

Duvida

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

Grateful.

1 answer

1


The line :

para k de 4 ate 7

Is similar to

between 4 and 7 

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

In the case of a for(k=4; k<=7; ....

  • Thank you very much!

  • If the answer helped you, evaluate it as the answer to the question.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.