I am I wrong?*
#include
using namespace std;
int main() {
int a,b;
cout<<"entera<<“enter b”<<“enter c”;
cin>>a>>b>>c;
sum=a+b+c;
cout<<sum;
return 0;
}
You forgot to declare c
.
int a,b;
should be
int a,b,c;
I think that you would normally input one variable at a time:
cout << "enter a: ";
cin >> a;
cout << "enter b: ";
cin >> b;
and so on.