Your code is not following the assigment: program that reads an integer
The first fix for the program is to change what it reads from three doubles to one int.

The trick for isolating digits in...