Image

Imageworldsoutro wrote in Imagecpp

hey can some one help me please??

This is for homework and i can't seemed to get the if statement to work and i tried looking it up but still having problem. It spits out both choices not just one



#include
#include
#include
using namespace std;

int main()
{

double x,y;

cout<< "Please enter the X coordinate? ";
cin>>x;

cout<<"Please enter the Y coordniate? ";
cin>>y;

if (x,y == 0) {
cout<< "You have the origin";
}
else if (x > 0, y == 0) {
cout<< "you are the X axis, positive side";
}


system("PAUSE");

return 0;

}


thanks big time.