Factorial Program in Java:
Factorial of a number means the product of all positive descending integers.
for example: If we want to calculate factorial of 5 then it will be written as
5 x 4 x 3 x 2 x 1 = 120 . So 120 is the factorial of 5.
Ex: Write a java program to calculate gross salary of an employee. How to write a java program to calculate gross salary of an employee using DA and HRA. Java program to calculate gross salary of an employee using DA and HRA.
We can calculate gross salary of an employee using following DA and HRA. The DA is 20% of the basic salary while the HRA is 30% of the basic salary and gross salary is addition of basic salary, DA and HRA.
In previous post we learnt what is java programming or introduction of java programming, In this article you will learn basic of java programming with lot of java programming exercises, examples and their solutions.