Browse Source

translation in french for raids1

pull/167/head
Christopher Fremond 5 years ago committed by Christopher Fremond
parent
commit
b2e64473ca
  1. 121
      subjects/raid1a.fr.md
  2. 121
      subjects/raid1b.fr.md
  3. 121
      subjects/raid1c.fr.md
  4. 121
      subjects/raid1d.fr.md
  5. 121
      subjects/raid1e.fr.md

121
subjects/raid1a.fr.md

@ -0,0 +1,121 @@
## raid1a
### Instructions
Écrire une fonction `Raid1a` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1a(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o---o
| |
o---o
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o---o
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o
|
|
|
o
student@ubuntu:~/student/test$
```

121
subjects/raid1b.fr.md

@ -0,0 +1,121 @@
## raid1b
### Instructions
Écrire une fonction `Raid1b` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1b(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/***\
* *
\***/
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/***\
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/
*
*
*
\
student@ubuntu:~/student/test$
```

121
subjects/raid1c.fr.md

@ -0,0 +1,121 @@
## raid1c
### Instructions
Écrire une fonction `Raid1c` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1c(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction ::
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBA
B B
CBBBC
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBA
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
B
B
B
C
student@ubuntu:~/student/test$
```

121
subjects/raid1d.fr.md

@ -0,0 +1,121 @@
## raid1d
### Instructions
Écrire une fonction `Raid1d` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1d(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
B B
ABBBC
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
B
B
B
A
student@ubuntu:~/student/test$
```

121
subjects/raid1e.fr.md

@ -0,0 +1,121 @@
## raid1e
### Instructions
Écrire une fonction `Raid1e` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1e(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
B B
CBBBA
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
B
B
B
C
student@ubuntu:~/student/test$
```
Loading…
Cancel
Save