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
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