starsstayforforever starsstayforforever
  • 09-03-2022
  • Computers and Technology
contestada

Determine the value of a and b at the end of the following code segment:

int a = 5;
int b = 10;
a++;
b*=a;
a = b + b;

The value stored for a is _____ and the value stored for b is _____

Choices

120 and 60
60 and 30
5 and 10
30 and 60

Respuesta :

ThatKidx
ThatKidx ThatKidx
  • 09-03-2022

Answer:

30 and 60

Explanation:

Answer Link

Otras preguntas

The most concentrated source of calories comes from
The moon revolves around earth at a fairly constant speed.Is the moon accelerating
2 times as many as 8 is 16
Estimate the unit rate if 12 pairs of socks sell for $5.79.
-3(2r-4) > 2(5-3r) Whats the inequality?
Is this equation a direct variation? Y= 4x + 9
Four less than five times a number is equal to 11
What are two key characteristics of a good scientific investigation
What effect did the Meiji Restoration have on Japan's economy?
The resting heart rate of an adult is usually about 60 beats per minute. Use your completed table to find approximately how many minutes it will take for the av