The program works fine, but i cant understand why it doesnt go to a new line
#include <iostream>
using namespace std;
int main ()
{
int a, b, c;
int result;
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?
system ("pause");
return 0;
}
@buffbill
The "\n" and std::endl do basically the same thing but as Zaita pointed out above std::endl is should be used when using std::cout against "\n" for printf() type calls.