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

19. The area A of a circle is pi times the radius r squared. Translate into a equation
How is a generalization used in literature ?
“Why do living things sometimes change direction?” Why is Amy’s question not a very good scientific question?
Explain and give an example of a primary source
What action did Emperor Ezana take that affected the development of Aksum? O He introduced Christianity. O He converted to Islam. O He conquered the kingdoms of
A 2000-liter tank initially contains 400 liters of pure water. Beginning at t = 0, an aqueous solution containing 1.00 g/L of potassium chloride flows into the
Solve for x. 3x^2-14=13
Explain how patterns in the periodic table can provide evidence that explains how the structure of each element is different from another.​
GEOMETRY QUESTION!! WILL GIVE 20 POINTS + BRAINLIEST! Solve for x. Group of answer choices x = 13 x = 7 x = 6 x = 12
Solve: 2/3 x - 4 = -2 A) -3 B) -4 C) -9 D) 3