*/, /*obtain optional argument from the CL. A double vampire number is a vampire number which has fangs that are also vampire numbers. Accept Numbers from command line or stdin. Program to print all Kaprekar numbers between 1 to 100. They can be arranged in any way. = "+(arr[3]*10+arr[2])+" * "+(arr[1]*10+arr[0])); else if(checkIfVampire(arr[3],arr[1],arr[2],arr[0],num)). System.out.println(num+" example include: 1260=21*60 1827=21*87 2187=27*81: 0 Companies . Pairs of trailing zeros are not allowed. A vampire number has an even number of digits and is formed by multiplying a pair of numbers containing half the number of digits of the result. Submissions. This alternative solution is not fast but it's short: Naive implementation, but notice the sequence-filter/sequence-map composition -- -- Uses fang_check to find vampire nubmers. In this program, while loop is used to reverse a number as given in the following steps: First, the remainder of the num divided by 10 is stored in the variable digit.Now, the digit contains the last digit of num, i.e. Example, if the number entered is 23, the program should print twenty three. Vampire Numbers Source Code In Java Codes and Scripts Downloads Free. An inexpensive solution to measure Java code's performance. Can we execute a program without main() method in java? Some of the members of the class are given below: Class name : Happy. Hash Table Math. import java.util. Java program to input a number and check whether it is a Circular Prime or not. Posted 08 December 2010 - 05:09 AM.