Link to home
Start Free TrialLog in
Avatar of pacumming
pacummingFlag for United States of America

asked on

c++ need help formatting and aligning output

Working on a program (helping someone). File is attached. Input a number such as 9000, then hit enter. Input second number as perhaps 9300. Try again with 2nd number as 0078
It is simulating a gas meter.
The output is right and vertically aligned as you can see, but somehow he has extraneous zeroes where there should be spaces.
How is this corrected?

Thanks
PC
seanlab5.cpp
Avatar of Infinity08
Infinity08
Flag of Belgium image

Can you show some output you currently get ? As well as the output you would have liked instead ?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial