CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Integer Division and Modulo

C# code walkthrough · Question 26
easyOperators

Code

Read carefully. What does this print?
1int a = 7;
2int b = 2;
3Console.WriteLine(a / b);
4Console.WriteLine(a % b);

Your answer