Can anyone help me about the function of the following part of a programm by givving me an example ?
if (x > y)
z = x;
if (x == y)
z = 0;
if (x < y)
z = y;
Last edited on
That code sets 'z' to the maximum value ( 'x' or 'y' ).
If 'x' and 'y' are the same, 'z' would be equal to zero.