i did this c++ program and its not working and iam nt sure why..it would be great if i was told why??
#include <iostream>
using namespace std;
int main ()
{ int n1,n2,n3;
int total;
cout<<"Enter three intgers n1 n2 n3"<<endl;
cin>>n1,n2,n3;
if (n1>n2&& n2>n3&& n1>n3);
{
(n1+n2)=total;
cout<<"total"<<endl;
}
else if (n1<n2 && n3>n1 &&n3>n2);
{
(n1+n3)=total;
cout<<"total"<<endl;
}
else if
{
(n2+n3)=total;
cout<<"total"<<endl;
}
return 0;
}
Thanks
thanks that help makes sense.