FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-debugging/Java/q5.java at master · rajjitlai/code-debugging · GitHub
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
rajjitlai
/
code-debugging
Public archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
code-debugging
/
Java
/
q5.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (11 loc) · 301 Bytes
Breadcrumbs
code-debugging
/
Java
/
q5.java
Copy path
File metadata and controls
12 lines (11 loc) · 301 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
public
class
q5
{
int
fact
(
int
n
) {
if
(
n
=<
1
)
return
n
;
return
fact
(
n
-
1
) +
fact
(
n
-
2
);
}
void
main
(
String
[]
args
) {
let
n
=
5
;
System
.
out
.
println
(
"Factorial of "
<<
n
<<
" is "
<<
fact
(
n
));
}
}
Back
|
FazBrowse Home
|
New Git URL