Question: Question 7 ( 2 points ) How are num 1 and num 2 passed? public static int sumNumbers ( int num 1 , int num

Question 7(2 points)
How are num1 and num2 passed?
public static int sumNumbers(int num1, int num2)
1
Int sum =0 ;
for(int i= num1: i num 2;i++)
1
sum +=1;
1
return sum;
1
by value
by reference
by arrays
by numbe
Question 7 ( 2 points ) How are num 1 and num 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!