Java Program to Calculate the Cube of a Number

cube program in java

In this tutorial we will 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 output. What is Cube of Number? When a number is multiplied to itself three times, resultant number is known as cube of number. … Read more

Factorial Program In Java using loop and recursion

java factorial program

In this tutorial we will learn writing program in java to find the factorial of a number using for loop, while loop, functions and recursions. Before start writing the program Lets first know What is Factorial of a number? Factorial of a whole number ‘n’  is the product of that number with every whole number … Read more

Program to reverse a number in java with explanation

Program To Reverse A Number in java

In this tutorial we are going to learn how to write a program to reverse the digits of a given number in Java programming language. So Lets  know what we are going to achieve in this program before moving on writing program. Suppose if someone given input to the program like 456789. After performing reverse … Read more