What will be the output of the following coded segment if x = 10 and y = 20?
if(x%10 == 0 || y <= x/2)
{
if (y%20 < 0)
{
x++;
x = y%10 + y/2;
cout << "X = ” << x++;
}
else
{
x = x-- + ++y - y%5;
cout << "\nX = ” << x--;
if(x >= y)
{
x++;
y = x * 2 + y;
cout << "\nY = ” << y;
}
}
}
if(x%10 == 0 || y <= x/2)
{
if (y%20 < 0)
{
x++;
x = y%10 + y/2;
cout << "X = ” << x++;
}
else
{
x = x-- + ++y - y%5;
cout << "\nX = ” << x--;
if(x >= y)
{
x++;
y = x * 2 + y;
cout << "\nY = ” << y;
}
}
}