A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
cours-mesi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
j
[cours-mesi.git]
/
tps
/
chap1
/
tpfacto.java
1
2
class TestFactorielle{
3
4
public static int factorielle(int n){
5
int r = 1;
6
for (int i = 2; i <= n ; i ++){
7
r = r * i;
8
}
9
return r;
10
}
11
12
public static void main(String args[]){
13
for (int j=1; j< 36 ; j++){
14
System.out.println(""+j+"!="+factorielle(j));
15
}
16
}
17
}
18
19
20
21