Computer Science, asked by adityakeshari2019, 2 days ago

write a java programme to find the sum of two numbers stored in two different classes and stored the result in third class in different package

Answers

Answered by anantramdasg
0

Explanation:

public class SumOfNumbers1

{

public static void main(String args[])

{

int n1 = 225, n2 = 115, sum;

sum = n1 + n2;

System.out.println("The sum of numbers is: "+sum);

}

}

Similar questions