Professional Documents
Culture Documents
How take input from user, perform a mathematical process and display the result. Then compare the
result against another number to see if it is greater than or less than that number.
import java.util.Scanner;
class AddNumbers
int x, y, z;
x = ee.nextInt();
y = ee.nextInt();
z = x + y;
if (z <= 10) {
else{