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

Measurement bias caused by observer expectations can be avoided by using _______ observers.
Which type of galaxy is a spherical cluster of stars with extraordinary brightness and little dust and gas?
Find the area of the isosceles triangle.
find the solution set for this equation -s^2-5s=0
4 yd 4 yd 20 yd 24 yd 20 yd 24 yd What is the perimeter?
Danny reads 5 words In 2/80 minutes. How many words does Danny read per minute
what did some immigrants come for​
Weaker contractions occur in muscles that are overly stretched because there is minimal thick and thin filament overlap for crossbridge formation. True or False
If 30 gallons of water weighs 249 pounds, what is the weight of 7 gallons of water in pounds?
Which series of labels correctly identifies the indicated structures in this sketch of a cell viewed under a microscope? 1. A. nucleus B. mitochondrion C.