what will be the output for the following code : [ 2 ] class MethodExample2 { public void main(String []args) { int n1,n2, total; n1 = 30; n2=2; printSum(n1,n2); } public void printSum(int a, int b) { int s1; s1 = a*b; System.out.println(" we are in method printSum"); System.out.println("sum of "+a +" and " + b + " = "+s1); } }
send me answers within 5 minutes,fast
but don't unwanted answers
Answers
Answered by
4
Answer:
Answered by
1
First write your question properly now!!!
Similar questions