A discrete mathematics problem solved with c++