I want to have a program, where I input a 6 digit number, it does a sum to the 6 digit number, then, takes the various digits, and output the nearest whole number (rounded down), then puts the digits in a certain order (EG last 2, first 2, middle 2)

So it would do for argument sake (135791 + 123123)/3 = 086394 OUTPUT 940863

I am time short on this one, and wondered if someone could lend a hand?

Ideally in C++

I will post up later when home my code to date, but as I am at work, it is a bit difficult to do so.