To print in columns you can use the "\t" escape code for tab. As far as inserting commas, I havn't worked in C for a while but this should work for thousands, you can use this as a base.
This doesn't use decimals, but it should be fairly easy to convert. I know this might not be the best way, but like I said, I'm a little out of practice, and this flu is getting to me
Hope this helps,
Rob Rob
"Programming is like art...It makes me feel like chopping my ear off."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.