PS Also am I correct in this coding? I would really like direction?
PS Also am I correct in this coding? I would really like direction?
Your code also doesn't quite do what you are asked to do - first of all, you have far to many "cout << ..." statements.
You need to use some sort of if-statement that splits the high and low parts away from the "middle". I would probably write it using a variable called "middle". I'm not going to show you how to do that just yet, because I think you need to learn from experience, not from reading what others have done.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.