← Back to Question List
C# Code Walkthrough #42
Modulo With Negatives
📄 Code
Read carefully — what does this print?1Console.WriteLine(-7 % 3);2Console.WriteLine(7 % -3);
1Console.WriteLine(-7 % 3);2Console.WriteLine(7 % -3);