new guy in this sphere, dont bash too much :S
#include <iostream>
using namespace std;
int main()
{
int x,y;
cin>> x; cin>> y;
if (x==0) cout<< "x = 0";
else cout<< "x isnt 0";
return 0;
}
this piece works ok but if i add 1 more condition it fails:
#include <iostream>
using namespace std;
int main()
{
int x,y;
cin>> x; cin>> y;
if (x==0);(y==0); cout<< "x/y = 0";
else cout<< "neither is 0";
return 0;
}
i want it to check if either x or y equals 0
so what can be done about this?