PHP Code:
#include <iostream>
using namespace std;
int main()
{
int a,b,c,d,x;
cout<<"Numarul a:";
cin>>a;
cout<<"Numarul b:";
cin>>b;
(c=a+b);
(d=a*b);
if(c>d)
(x=c);
(c=d);
(d=x);
cout<<"d este";
cout<<d;
cout<<"c este";
cout<<c;
else
cout<<"d este";
cout<<d;
cout<<"c este";
cout<<c;
if(a!=0)
cout<<"d este";
cout<<d;
cout<<"c este";
cout<<c;
else
cout<<"d este";
cout<<d;
cout<<"c este";
cout<<c;
}
C:\MinGWStudio\Templates\T1\Andrei2.cpp||In function 'int main()':|
C:\MinGWStudio\Templates\T1\Andrei2.cpp|23|error: 'else' without a previous 'if'|
C:\MinGWStudio\Templates\T1\Andrei2.cpp|38|error: 'else' without a previous 'if'|
||=== Build finished: 2 errors, 0 warnings ===|






