Bifalgorithm post · Computer science one · Type Juggling

How does the modulo operator calculate remainders in PHP?

How does the modulo operator calculate remainders in PHP? (Computer science one · Type Juggling) — "$x = 10 % 5; //x is 0\n\n$x = 10 % 3; //x is 1\n\n$x = 29 %…

Ideas in this flowchart

  • Opérateur modulo (%)
  • Calcule le reste de la division entière entre deux nombres.
  • 10 % 5 donne 0.
  • 10 % 3 donne 1.
  • 29 % 5 donne 4.
Feed/

How does the modulo operator calculate remainders in PHP?

No cover

Channel

Computer science one

1 page

"$x = 10 % 5; //x is 0\n\n$x = 10 % 3; //x is 1\n\n$x = 29 % 5; //x is 4"

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.