In this tutorial, we are going to learn writing java program to check if the given year is a leap year or not. A Leap year comes every 4 year and the days in February…
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…
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…
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…
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…
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…
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…