Write a Java program to display the cube of the number upto given an integer
belongs to collection: all conditional programs in Java programming language
All Answers
total answers (1)
belongs to collection: all conditional programs in Java programming language
total answers (1)
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
Enter number of terms : 6
cube of 1 is : 1
cube of 2 is : 8
cube of 3 is : 27
cube of 4 is : 64
cube of 5 is : 125
cube of 6 is : 216
need an explanation for this answer? contact us directly to get an explanation for this answer