mariewilliams78
mariewilliams78 mariewilliams78
  • 18-03-2021
  • Computers and Technology
contestada

Write a program using for loop to find the cube of numbers from 50-100
FASTT

Respuesta :

Аноним Аноним
  • 18-03-2021

Answer:

JAVA

for(int i = 50;  i <= 100          i++;)

{

   int cubedNum = Math.pow(i, 4);

   System.out.println(cubedNum);

}

Explanation:

The For loop is set so that it will go the amount of times until the variable i reaches 100, then it will stop increasing i.

Then, we raise i to the 4th power in the loop, and then print it out.

#teamtrees #PAW (Plant And Water)

Answer Link

Otras preguntas

When 711 J of heat is added to a 41.1 g of an unknown metal, the temperature of the metal increases from 22oC to 94oC. Calculate the specific heat of this metal
what made the scale of suburban growth possible
Which ordered pair identifies a point in Quadrant IVA)(2, 5) B)(0, 1) C)(-1, -1) D)(12, -5)
. Solve the inequality. –8m < –24
Which dramatic movement centered on aspects and storylines tied closely to religion? A. Roman B. Naturalism C. Medieval D. Absurd
Who makes decisions regarding changes in the discount rate?
The korean war pitted the military forces of north korea and china against who
please help quick and easy points
When the present participle of a verb is used in conjunction with a helping verb, the verb is referred to as        A. irregular.   B. progressive.   C. infinit
Which is not a common value among 6- to 11-year-old children?