hello there i got a very simple question:
The question is how can i add the looped numbers automatically..? any help there....?thanks....Code:#include <iostream> using namespace std; int main(void) { int count; for(count=1; count<=10; count++){ cout << count << endl; } cout << endl; cout << "The total is "<< (1+2+3+4+5+6+7+8+9+10) << endl; cin.get(); return 0; }