count how many months until Oct without using any thing but cout

Count the number of months to October of the following year, modulo 12.

cout << (22 - a) % 12;

Leave a Comment