Computer Science, asked by mdzaid121206, 5 months ago

write a program in java to print the cube of first five natural numbers

Answers

Answered by Lilcutie01
1

Answer:

First follow me on brainly by this Id

Answered by shreypathak62
0

Answer:

class Cube

{

       public static void main(String[]args)

       {

               for(int i = 1 ; i <= 5 ; i++)

                     System.out.println(i*i*i);

       }

}

Explanation:

Similar questions