What is the difference between % operation in a language and the % operation on google?

Viewed 36
System.out.println((-1) % 4);

vs searching -1 % 4 on google gives two different outputs

enter image description here

enter image description here

why are these two giving me different outputs?

0 Answers
Related