1,1,4,8,9,27,16,64,25,125, Programming Beginner To Advanced class series { public static void main(String args[]) { int d,e; for(int i=1;i<=5;i++) { d=i*i; e=i*i*i; System.out.print(d+","+e+","); } }} Share This: Facebook Twitter Google+ Stumble Digg Related Posts:(age>=18) is the condition if the expression is true value “Allowed”is assigned to voting else “Not Allowed” will be assigned to voting. Using Ternary Operator make this program. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; import java.util.*;class voting{ &… Read MoreWrite a program in Java to accept any integer and check wheather it is odd or even Without Use If else. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; //EVEN ODD WITH OUT IF ELSE / USING TERNARY … Read MoreFind largest and smallest of two numbers without using if else. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; import java.util.*;class largest_smallest… Read MoreWrite a program in java to display all the Armstrong numbers from 1 to 1000 Armstrong number is a number that is equal to the sum of cubes of its digits. For example 0, 1, 153, 370,371 and 407 are the Armstrong numbers. 153 =… Read More S = (1*2) + (2*3) + ……… To n var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; import java.util.*;class sum_series {&nbs… Read More