I have a little problem in my C++ class. We have a HW assignment that requires us to find the first and last digit in a number like 56789.

The number comes to the program from an input file, but I was wondering if the first and last digits must be found in the file or can they be computed once the number is retrieved from the input file.

I need as muc help as I can get, so any help will be appreciated.

I'll post this in Sandbox too, to try and get more views.

THANKS!!!

The number comes to the program from an input file, but I was wondering if the first and last digits must be found in the file or can they be computed once the number is retrieved from the input file.

I need as muc help as I can get, so any help will be appreciated.

I'll post this in Sandbox too, to try and get more views.

THANKS!!!

## Comment