(i) [0.5 points] first, takes the two integers X and Y as inputs from the user via scanf;
(ii) [1 point] second, it uses a single line
expression to compute the value of Z given by:
Z = maximum of X and Y when: X > 0 and Y > 0.
If either X or Y is not positive, Z = 1
(iii) [0.5 points] Third, the program must print the following:
The value of Z is equal to ?
where "?" is replaced by the actual integer value of Z.
(i) square(b) - 4ac < 0,
(ii) square(b) - 4ac == 0, and
(iii) square(b) - 4ac > 0.
Back to Grading & Homeworks page