Hey guys I'm still a beginner in c++ and i wanted to make a calculator in c++,
the problem is that when using my calculator the first answer is always wrong, its always (4309918) actually and any equation entered after that has the answer of the previous one. i don't know why.
cout<< "Welcome to the calculator! \n";
cout<< "Which type of operand do you want to use? \n 1-Addition \n 2-Subtraction \n 3-Multiplication \n 4-Division \n";
cout<< "Please enter a number \n";
cout<< "Select another one \n";
cout<<"The answer is:"<< sum << endl;