Can you help me show the right program to solve for my homework using C++
Why do you think this simple task was assigned to you? It is the thinking that is being exercised, not producing the answer.
Hump, grunt, strain, and get it done.
Hump, grunt, strain, and get it done.