leslieguerrero9933 leslieguerrero9933
  • 04-03-2024
  • Computers and Technology
contestada

What does this method call output?

public int trickyMethod(int x, int y)
{
int sum = 0;
while (x <= 10)
{
sum += x % y;
x++;
y++;
}
return sum;
}

trickyMethod(3,1)

a) 17
b) 20
c) 19
d) Compilation Error

Respuesta :

Otras preguntas

800multiplied by 0 -dash
What was the conflict with Paul revere ride?
When the image of a distant object is brought into focus in front of a person's retina, the defect is called a. farsightedness. b. nearsightedness. c. chroma
2. A cube is made up of six congruent square faces. Find the length of the inner diagonal of the cube. Note that is the hypotenuse of right triangle ADH. (R
savanna makes 18 gift baskets to sell in her store she puts 4 peaches in 10 of the baskets and 2 peaches in the remaining 8 baskets how many peaches does savann
a hydrogen bond is completed by the transfers of its sole electron to another element true or false
what group of colonist faced hostility as a result if their views regarding the declaration of independence
Rain water harvesting is a technique to- Options 1)Harvest the fields with rain water. 2)Collect the rain water in tanks for future use. 3)Collect the rain wate
One criticism of the Warren Court’s decisions in Mapp v. Ohio (1961), Gideon v. Wainwright (1963), and Miranda v. Arizona (1966) is that the Supreme Court (1) l
Starfish, flatworms, and sponges may be cut into pieces, and the individual parts will grow new individual animals by means of the process of _____. fragmentati