vault backup: 2023-09-05 19:31:13

This commit is contained in:
2023-09-05 19:31:13 +02:00
parent c599aadc51
commit 78e00883ea
2 changed files with 13 additions and 6 deletions

View File

@ -49,5 +49,12 @@ val stammer: int -> int = <fun>
## Exercice 2.6
```Ocaml
let sef_of_time h m s =
h*3600 + m*60 + s ;;
let time_of_sec s =
let hours = s/3600 and minutes = s mod 60 and seconds = s mod 3600 in (hours, minutes, seconds)
```