H.C.F. or G.C.D. Of Two Number Program in Java

H.C.F. Or G.C.D. Of Two Number Program in java

In this tutorial, we are going to learn writing java program to calculate the Highest Common Factor of two numbers. Our program will take two numbers as the inputs given by the user and returns the h.c.f. of given numbers. For example, for the inputs of the two numbers 4 and 6. Our program will … Read more

Java Program to Calculate Square root of Number

Calculate Square root of Number

In this tutorial, we are going to learn writing java program to calculate the square root of a given number.Our Program will take a number from the users as an input, and will return the square root of that number as output. What is Square root of Number? Square root can be defined as a factor … Read more

Java Program to calculate Power using POW() method

Calculate Power Using Pow() Method using java

In this tutorial we will learn writing Java Program to calculate Power of integer using POW() method. POW() method in Java  java.lang.Math.pow() In java, pow() method takes two parameter as an input and return the calculated Power as an Output. For Example: Math.pow(x, y) where x is base and y is exponent. so for the input … Read more

Calculate Power Without using POW method in Java

Calculate Power Without Using Pow() Method in Java

In this tutorial, we are going to learn java program to calculate the power of a given number. To calculate the power, user will give the base number and the exponent number. We will calculate Power by multiplying the base number exponent times. For example Power can be calculated using in built pow() method and … Read more

Java program to Print Prime Number in Given Range

Print Prime Number In Given Range in java

In this tutorial, we will learn writing Java program to print all the prime numbers that are present in the given range. Problem Statement What is Prime Number? Prime Numbers are the numbers that have only 2 factors 1 and the number itself. It is only defined for the number which is greater than ‘1’. … Read more

Hi, Welcome back!
Forgot Password?
Don't have an account?  Register Now