Coding challenge-1 Solution
Coding Challenge#1 Solution.
Here,goes the solution--
Explanation of code--
2)Compile Your Project.
3)Then Run.
4)Put a Number and get output.
Thank You for Visiting Our Blog.
Please Share !
The Solution of Coding Challenge#2 coming this Saturday.
Here,goes the solution--
Explanation of code--
- First we import Scanner class to accept input
- Create an object s.
- The we ask for a Number to be Entered.
- Initialize variables n and factorial
- Loop the factorial n times,multiplying consecutive integers to it n times to get its factorial.
- Finally,we can print the result.
Output--
1)Open command prompt and navigate to folder with your file.
2)Compile Your Project.
Thank You for Visiting Our Blog.
Please Share !
The Solution of Coding Challenge#2 coming this Saturday.
0 Comments