FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DataStructure-Java/ArrayFact.java at master · joharbatta/DataStructure-Java · GitHub
joharbatta
/
DataStructure-Java
Public
Notifications
You must be signed in to change notification settings
Fork
15
Star
9
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
DataStructure-Java
/
ArrayFact.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (15 loc) · 253 Bytes
Breadcrumbs
DataStructure-Java
/
ArrayFact.java
Copy path
File metadata and controls
15 lines (15 loc) · 253 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
15
import
java
.
util
.*;
public
class
ArrayFact
{
public
static
void
main
(
String
args
[])
{
Scanner
sc
=
new
Scanner
(
System
.
in
);
int
res
=
0
;
int
fact
=
1
;
int
n
=
sc
.
nextInt
();
for
(
int
i
=
n
;
i
>=
1
;
i
--)
{
fact
=
fact
*
i
;
}
System
.
out
.
println
(
fact
);
}}
Back
|
FazBrowse Home
|
New Git URL