| Using a few if statements would not slow the program down enough for the user to notice a difference, if statements are what C++ is good at i belive.
I am no expert in c++ but i know that the answer should be 6 digits as yuo have said, can you just say if the length of the result is 1 char then add 5 0 before it or 4, 3, 2, 1 etc you get what i mean i hope. |