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

Jamison walked through the forest, and he saw the sun coming through the branches of the trees. Which BEST explains how the style of the sentence can be improv
What does the food webs demonstrate?
What is the common difference d of the sequence? 9, −8, −25, −42, −59, ...
In a state with 8.25% tax, someone buys an article marked 15% discount. When the price is worked out, does it matter if the tax is added first and then the disc
Who made stone sculptures in the early american civilizations
picture down below science
Elise is doing her home work. she spends 1/3 hour on math homework and 1/5 hour on spelling words. For numbers 6a-6c, select yes or no to tell whether each of t
Which of the following best describes serfs? A. peasants who gave their land to the local lords in exchange for protection B. slaves to the local lord who could
Do you think that's animals should be bred to develop a specific traits
anyone fluent in spansh?