Posts

Showing posts from October, 2018

Disarium Number

Disarium Number in JAVA A Disarium Number  is a number if the sum of its digits powered with their respective position is equal with the number itself. Example :   1 1 +3 2 +5 3  = 135 Algorithm and Program Below  :-

Mirror Image of a Matrix

Image
Mirror Image of a Matrix in JAVA Finding  Mirror image of a  matrix  of order  M  X N  is given.  Logic and Program  :-

Evil Number in JAVA

Evil Number An Evil Number is a non-negative integer that has an even number of 1s in its binary expansion . Some evil numbers are:   3, 5 , 6, 9 , 10.  This Program video link is provided at the bottom of this post. Program given Below  :-

Decimal to Binary Number in JAVA

Decimal to Binary Number Example : Input : 13                   Output : 1101   Program given Below  :-

Print Initials of a given Name in JAVA

Initials of a Name in JAVA Example : Input : Mahendra Singh Dhoni                   Output : M.S. Dhoni Algorithm and Program Below  :-

Arranging given Word in Alphabetical Order in JAVA

Arrange the String in Alphabetical Order Example : Input : Computer                   Output : Cemoprtu Algorithm and Program Below  :-

Twisted Prime in JAVA

Twisted Prime Number A number is said to be Twisted Prime if it is a prime number and reverse of the number is also a prime number. Twisted Prime number is also called Emirp Number. Example : Input = 79                   Reverse = 97 Output : Twisted Prime Algorithm and Program Below  :-

Primorial Number in JAVA

Primorial Number Primorial Number is like factorial number. In Primorial Number all the prime numbers upto a given number is Multiplied. Example : Input = 10                   Output = 210 Primorial : 2*3*5*7 Algorithm and Program Below  :-