- Write a [function](TODO-LINK) that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`.
- Write a function that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`.
- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters.
@ -20,7 +20,7 @@ func Atoi(s string) int {
### Usage
Here is a possible [program](TODO-LINK) to test your function :
Here is a possible program to test your function :
Write a [function](TODO-LINK) that prints `'T'` (true) on a single line if the `int` passed as parameter is negative, otherwise it prints `'F'` (false).
Write a function that prints `'T'` (true) on a single line if the `int` passed as parameter is negative, otherwise it prints `'F'` (false).
### Expected function
@ -14,7 +14,7 @@ func IsNegative(nb int) {
### Usage
Here is a possible [program](TODO-LINK) to test your function :
Here is a possible program to test your function :
Écrire une [fonction](TODO-LINK) qui affiche `'T'` (true) sur une seule ligne si l'`int` passé en paramètre est négatif, sinon elle affiche `'F'` (false).
Écrire une fonction qui affiche `'T'` (true) sur une seule ligne si l'`int` passé en paramètre est négatif, sinon elle affiche `'F'` (false).
### Fonction attendue
@ -14,7 +14,7 @@ func IsNegative(nb int) {
### Utilisation
Voici un éventuel [programme](TODO-LINK) pour tester votre fonction :
Voici un éventuel programme pour tester votre fonction :