joshuakevwilson8
joshuakevwilson8 joshuakevwilson8
  • 17-07-2022
  • Advanced Placement (AP)
contestada

I need help with solution

I need help with solution class=

Respuesta :

culveryolanda46
culveryolanda46 culveryolanda46
  • 18-07-2022

Answer:

A

Explanation:

When dealing with comp sci,

the / symbol only cares about the whole number of the answer unless we cast it to a double.

For example,

[tex] \frac{53}{5} = 10[/tex]

in Java,

So here

[tex] \frac{13}{5} = 2[/tex]

Since a is assigned to that,

[tex]a = 2[/tex]

Next, the symbol % acts as the remainder sign

[tex]b\%a[/tex]

Remember b is 5, and a is 2 now, so

[tex]5\%2 = 1[/tex]

So

b=1

The answer here is A

Answer Link

Otras preguntas

What are examples of 1950s economic prosperity?
Question Which systems of equations have infinitely many solutions? Select each correct system.
Is this statement true or false? As blood flows through the human heart, it enters through the left ventricle. It then flows into the right ventricle and is pum
Why did Porfirio Díaz promote foreign investments in Mexico in the early 1900s? A to improve the value of land in the country B to improve the lives of peasant
PLSS HELP These points are linear. Find the slope. X-3 -2 -1 0 1 y-16-8 0 8 16 slope = [?]
find the area use 22/7 for π​
Please help on this math question!!!
please help and answer fast please
f(x)= 3x² and g(x) = x+2, find (f•g)(x).​
Out of all the shoes I have these are my favorite or favorites. ?