how to take mod of a number in c++ code example Example: find mod in cpp // Mode(%) => to get remainder 1 % 10 = 1 2 % 10 = 2 10 % 10 = 0