Sample Problem
•
Calculate the value of n:
•
int a = 3, b = 2, p = 8, q = 5;
•
double n = (p/b + q/a) % 3;
•
(4+1) % 3 = 2
Ans: 2