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

Why is categorizing an important skill for historians to practice? Give an example of how a historian might use categorization to study the past?
Please help me and show your work thank you so much
What is the sum of two numbers a and b decreased by their product?
Diego has 75% of $10. Noah has 25% of $30. Diego thinks he has more money than noah but noah thinks they have the same amout who is right? Explain your reasonin
How is this helpful to fish that live in the lake
What is one way that each branch of the government can control the power of another branch?
Please help and show your work thank you
Roger Rong borrowed $12,000 on 120 - day 11 percent note. Roger paid $4,000 toward the note on day 40. On day 110 he paid an additional $3,000. Using the U.S. R
Name the colonies in the New England region and explain why they were settled .
Find the width (w) of a rectangular room with a length (I) of 60 moters and an area (a) of 2,400 square meters.