print("5 % 3 = " + str(5 % 3))print("-5 % 3 = " + str(-5 % 3))print("5 % -3 = " + str(5 % -3))
Standard input is empty
5 % 3 = 2 -5 % 3 = 1 5 % -3 = -1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!