mschiele7664 mschiele7664
  • 10-01-2024
  • Computers and Technology
contestada

What is the output of this program?

int sum = 1;
System.out.println("Welcome to the adding machine!");
while(sum < 10)

sum += sum;
System.out.println(sum);
1) Welcome to the adding machine!
1
2
4
8
16
2) Welcome to the adding machine!
2
4
8
16
3) Welcome to the adding machine!
2
4
8
4) This code has an infinite loop.

Respuesta :

Otras preguntas

(−2x0y3 )(4x2y4 )+(2y5 )(3xy)2
log3(2x-5)=2 Answer is 41/2.  Why?
Why are some examples of a chemical reaction not actually foolproof evidence that of a chemical reaction?13, 8th grade, and I'm doing my science lab report: The
Alex built a snowman using three snowballs,one small, one medium and one large, with diameters in the ratio 2:3:5.      Although highly unlikely due to the phys
who was the first president of the united states of america
Why are some examples of a chemical reaction not actually foolproof evidence that of a chemical reaction?13, 8th grade, and I'm doing my science lab report: The
log3(2x-5)=2 Answer is 41/2.  Why?
I need help for algebra 2 for simplify form for example (3x-2i)(3x+2i)
(−2x0y3 )(4x2y4 )+(2y5 )(3xy)2
log3(2x-5)=2 Answer is 41/2.  Why?