4,12,36,108,324, Programming Beginner To Advanced class series { public static void main(String args[]) { int d=4; for(int i=1;i<=5;i++) { System.out.print(d+","); d=d*3; } }} Share This: Facebook Twitter Google+ Stumble Digg Related Posts:Write a program in java to accept a number from user and check weather its palindrome or not. Palindrome Number - A palindrome number is a number such that if we reverse it, it will not change. For example some palindrome numbers examples are… Read MoreWrite a program in java to enter a number and check whether the number is twisted prime or not. … Read MoreWrite a program in java to calculate and print the sum of odd numbers and sum of even numbers. import java.util.*; class sum_of_odd_even{ public static void main(String args[]) { … Read MoreWrite a program in java to accept a number and display the sum of its digits. In mathematics, the digit sum of a given integer is the sum of all its digits (e.g. the digit sum of 84001 is calculated as 8+4+0+0+1 = 13). import … Read MoreWrite a program in java to enter a number and check whether the number is Neon or not. A number is said to be a Neon Number if the sum of digits of the square of the number is equal to the number itself. Example- 9 is a Neon Number. 9*9… Read More