wanderer179 / Hacktober2021-files

All your JAVA programms at one place.
6 stars 37 forks source link

Factorial using parameterized constructor #42

Closed abhianand0110 closed 3 years ago

abhianand0110 commented 3 years ago

Written a java program to calculate the factorial of 5. The class have parameterized constructor to initialize data members. It also have member functions to calculate and display the values of data members and the result.