I am a beginner of C++.
i want to print out the list like the following
but what i get is this
and this is my code
It looks like i did something wrong when i trying to assign the value that i calculated to the array rent[]...
please help.
i will be appreciated.