Only for passionate software testers
package exam; public class Program3 { public static void main(String[] args) { int n=5; for(int i=1;i<=n;i++) { System.out.print(" " +(i*i*i)); } } } o/p:- 1 8 27 64 125