You can tell what the output is without running the code, right?
int main()
{
int a = -1;
int dx = 0;
int dy = 1;
if (dy == 0)
if (dx < 0)
a = 0;
else if (dx > 0)
a = 1;
else if (dx == 0)
if (dy < 0)
a = 2;
else if (dy > 0)
Comment too long. Click here to view the full text.