Problem Statement - Suggesting Error Corrections in Natural Number Addition
A student has written this program to sum natural numbers from 1 to 10. His program is not giving correct results. Please help in correcting this program with right explanations as well.
using namespace std;
cout<<"Sum of natural numbers upto 10 = "<<sum<<endl;
sunmitra| Created: 31-Jan-2018 | Updated: 5-Feb-2018|