Write expression in java for
2 +
2 =
2
Answers
Answered by
2
public class Main {
public static void main(String[] args) {
int x = 2;
int y = 2;
int sum = x + y;
System.out.println(sum); // Print the sum of x + y
}
}
Similar questions