John Valiant wrote:ok here is my code.
Here's what I get:
Looks the same in both a cygwin txvt terminal and a cmd.exe console.
The only thing you need to fix in the code is that the first column doesn't account for multiple digits in miles. (Probably the third column for kM too, but since they're all 2 digits, you don't see it.)
I would change the first column to %2.0f to get the first miles column right-aligned, and I would run it in a command console if I were you.