Computer Science, asked by prachichugh64, 2 months ago

Write expression in java for

2 +

2 =

2​

Answers

Answered by anshubhardwaj594
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
Math, 1 month ago