I set up a simple calculator but i'm getting a error saying end1 was not declared in this scope?
#includ <iostream>
using namespace std;
int main()
{
int FirstNum;
int SecondNum;
int Sum = 0;
FirstNum = 4;
SecondNum = 5;
Sum = FirstNum + SecondNum;
cout<<"Summation of two numbers = "<<Sum<<end1;
return 0;
}
It's endl (with a lower case L), not end1 (numeric one)
endl is a mnemonic for "end line and flush".
Last edited on