The program works fine, but i cant understand why it doesnt go to a new line
using namespace std;
int main ()
int a, b, c;
cout << "Input Interger A, B, C";
cin >> a;
cin >> b;
cin >> c;
result = a + b + c - 2;
cout << result;
/n; // please tell me what i did wrong?
std::endl do basically the same thing but as Zaita pointed out above
std::endl is should be used when using
printf() type calls.
Last edited on