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…

LCM Program in Java with Explanations

In this tutorial, we are going to learn java program to calculate the least common multiple of two numbers. Our program will take two numbers as the input from the user and return the LCM…

Find Smallest among three in Java Program

In this tutorial we will learn writing java program to find the smallest number among the three given numbers. This program will be very simple. Here we are just comparing the numbers using if else…

Java Program to calculate Power using POW() method

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…

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…

Java Program to calculate square of number

In this tutorial, we will learn writing Java program to calculate the square of a given number. Our program will take a number as an input and will return the square of that number as…

Java Program to Calculate Cube of Number

In this tutorial, we are going to learn writing java program to calculate the cube of a given number. Our program will take a number and will return the cube of that number as an…