FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaCrafters/CoreJavaDay1/src/Factorial.java at main · SRCarlo/JavaCrafters · GitHub
SRCarlo
/
JavaCrafters
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaCrafters
/
CoreJavaDay1
/
src
/
Factorial.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (11 loc) · 265 Bytes
Breadcrumbs
JavaCrafters
/
CoreJavaDay1
/
src
/
Factorial.java
Copy path
File metadata and controls
14 lines (11 loc) · 265 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
13
14
public
class
Factorial
{
public
static
void
main
(
String
[]
args
) {
// TODO Auto-generated method stub
int
num
=
5
;
int
fact
=
1
;
for
(
int
i
=
1
;
i
<=
num
;
i
++) {
fact
=
fact
*
i
;
}
System
.
out
.
println
(
"Factorial of "
+
num
+
" is:"
+
fact
+
"."
);
}
}
Back
|
FazBrowse Home
|
New Git URL