Skip to content
Snippets Groups Projects
Commit cc23c470 authored by TIRONI Baptiste's avatar TIRONI Baptiste
Browse files

fin

parent 593ad2fd
Branches
Tags
No related merge requests found
......@@ -71,3 +71,12 @@ function deb7(x: number, y: number) : number {
return 0;}
return x * y;
}*/
let n=5;
console.log(deb8(n));
function deb8(n: number): number {
if (n === 0) {
return 1;}
let valeur = n * deb8(n-1);
return valeur;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment