Calculator setup issue

Sep 10, 2020 at 8:23pm
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;
}
Sep 10, 2020 at 8:25pm
It's endl (with a lower case L), not end1 (numeric one)
Sep 10, 2020 at 8:30pm
thanksss!
Sep 10, 2020 at 10:31pm
endl is a mnemonic for "end line and flush".
Last edited on Sep 10, 2020 at 10:31pm
Topic archived. No new replies allowed.