#include <iostream>
using namespace std;
int main()
{
int a;
int b;
int sum;
cout << "Enter a number boss \n";
cin >> a;
cout << "Enter another number \n";
cin >> b;
sum = a + b;
cout << sum;
return 0;
}
I tried to build a basic calculator which prints the sum of two numbers provided by the user in the code above in C++. But during linking it shows that there are multiple definition of main. How can i fix this?