Find the output
CLS
X = 2
y = 3
Z = 1
Start :
Print x + y +z
x = x+5
y = y - 1
Z = 2+3
PRINT X × y - z
If x-15 THEN GOTO STARTS:
END
Answers
Answered by
0
Explanation:
Given n, find x, y, z such that x, y, z satisfy the equation “2/n = 1/x + 1/y + 1/z”
There are multiple x, y and z that satisfy the equation print anyone of them, if not possible then print -1.
Examples:
Input : 3 Output : 3 4 12 Explanation: here 3 4 and 12 satisfy the given equation Input : 7 Output : 7 8 56
Similar questions