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

Which statement about function q is true?
Question 2 of 10 What is one major tool, aside from words, that media organizations can use to influence people's opinions? OA. Newsprint OB. Telegraphy OC. Pen
Given f(x) = 2(3 - x) - 2x, what is the value of f(x) = -10? ​
Savez-vous... A group of friends is renting a house on campus this year. Complete the sentences with the correct forms of either savoir or connaître. Question 1
Does any one know how to solve 1.69 x 6?
What is this number sequence called? 7, 22, 11, 34, 17, 52, 26, 13 and so on.
After an accident, police can use the formula v=2/5L to estimate the speed, v, in miles per hour, that a car was traveling by measuring the length of the skid
Need help with Information TechnologySBA
A waitress sold 12 ribeye steak dinners and 24 grilled salmon dinners, totaling $577.21 on a particular day. Another day she sold 18 ribeye steak dinners and 12
In this circuit diagram, the resistance is 100 ohms, and the current is 0.1 amperes. The voltage is