Include Amp Lt Iostreamamp Gt Using Namespace Std Int Main Int Number 0 While N

I’m trying to do a nested C++ program but I cant get it to run properly. I don’t just want the program written for me. I would really like comments explaining WHY it’s wrong and WHAT I should do instead. I really want to understand what I am doing because I have about a whole lot more other nested mini problems to do this month and I really want to understand how to do them correctly. Thank you so much, any assistance is appreciated.