I'm trying to figure out the following problem. I have the first part working correctly but it's the second part that is stumping me. It's a Kilograms to pounds console program that should have the following output. with the exception that the second set of pound and kilograms should be listed for every 5 kilograms like the second example and they have to be side by side tables.
Try commenting out line 17, that'll get rid of the pounds outputting twice. See what it looks like and add more tabs if necessary.
I'm not sure what you mean by side by side tables... like on the right it needs to multiply both values by 5? If you use the code tag for the output it will keep the spacing and maybe be more descriptive... [EDIT] ohohoh I see.....
Maybe doing a second calculation inside the if statement:
Is that it?
When you do things right, people won't be sure you've done anything at all.
The second table to the right increments by 5, the first one on the left checks to see if i is divisible by 2 therefore only printing the odd numbers for KG's. I need to figure out how to create the second set of numbers right next to the first set which I think should be checking to see if i % 5 == 0 but every time I try to do that I get bad results. I've tried another if statement.