Mr. Satyabrata has Published 387 Articles

How To Check Whether a Number Is a Fascinating Number or Not in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 12:07:14

3K+ Views

Fascinating number can be defined as a number which when multiplied with 2 and 3, and then the products after being concatenated with the number itself contains all the digits from 1 to 9. For a number to be a fascinating number it should be three or more than three ... Read More

How To Check Whether a Number is a Evil Number or Not in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 11:54:40

2K+ Views

A number is said to be an Evil number, if the number of 1’s present in the binary conversion of the given number is even. For more clarification, we have to first convert the given number into binary number. After converting we have to calculate how many ones are present. ... Read More

How To Check Whether a Number Is a Bouncy Number or Not in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 11:46:59

2K+ Views

Bouncy number can be defined as a positive number whose digits do not follow increasing or decreasing order. Means the digits are in an unsorted manner. There are no bouncy numbers between 1 to 100. To show you some instances Instance-1 Input number is 101 Let’s check it by using ... Read More

How To Check Whether a Number Is a Pronic Number or Not in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 10:00:23

5K+ Views

Pronic number can be defined as a number when it is a product of two consecutive integers. Mathematically, the Pronic number is in the form of n(n+1). It is also called as heteromecic number, oblong number or rectangular number. To show you some instances Instance-1 Input number is 12 Let’s ... Read More

How To Check If Three Points are Collinear in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 09:32:46

1K+ Views

Three points are said to be collinear if all the three points lie on a straight line. If the points do not lie on the same straight line, then they are not collinear points. It means if three points (x1, y1), (x2, y2), (x3, y3) are on the same straight ... Read More

How To Check if a Triangle is Valid or Not When Sides are Given in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 09:23:03

5K+ Views

As we know a triangle is a polygon which has 3 sides. It consists of three sides and three vertices. Three internal angles sum up to 180 degrees. In a valid triangle, if you add any two sides then it will be greater than the third side. As per our ... Read More

How To Calculate Volume of Prism in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 27-Oct-2022 09:13:10

581 Views

A prism refers to a three−dimensional solid object which has two identical ends. A prism has 2 faces, the first one top and bottom face and second one is lateral faces. Both top and bottom faces are called bases which are identical to each other. All lateral faces are also ... Read More

Advertisements