Using a trash variable is not a good way to implement this unless you are required to store or do something with the excess numbers. Using the trash variable slows down your program needlessly (which...