From 53128c9d3c5fb89b95e9b7a20d2515a14ce730e6 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Mon, 21 Oct 2019 18:27:31 +0100 Subject: [PATCH] slight mod for en subject ot printnbrinorder and add of placeholder for fr version --- subjects/printnbrinorder.en.md | 40 ++++++++++++++++++++++++++++++++++ subjects/printnbrinorder.fr.md | 40 ++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 subjects/printnbrinorder.en.md create mode 100644 subjects/printnbrinorder.fr.md diff --git a/subjects/printnbrinorder.en.md b/subjects/printnbrinorder.en.md new file mode 100644 index 000000000..58147ff7b --- /dev/null +++ b/subjects/printnbrinorder.en.md @@ -0,0 +1,40 @@ +## printnbrinorder + +### Instructions + +Write a function that prints an `int` passed in parameter. +All possible values of type `int` have to go through, besides negative numbers. +Convertion to `int64` is not allowed. + +### Expected function + +```go +func PrintNbrInOrder(n int) { + +} +``` + +### Usage + +Here is a possible [program](TODO-LINK) to test your function : + +```go +package main + +import piscine ".." + +func main() { + piscine.PrintNbrInOrder(321) + piscine.PrintNbrInOrder(0) + piscine.PrintNbrInOrder(321) +} +``` + +And its output : + +```console +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test +1230123 +student@ubuntu:~/piscine-go/test$ +``` diff --git a/subjects/printnbrinorder.fr.md b/subjects/printnbrinorder.fr.md new file mode 100644 index 000000000..58147ff7b --- /dev/null +++ b/subjects/printnbrinorder.fr.md @@ -0,0 +1,40 @@ +## printnbrinorder + +### Instructions + +Write a function that prints an `int` passed in parameter. +All possible values of type `int` have to go through, besides negative numbers. +Convertion to `int64` is not allowed. + +### Expected function + +```go +func PrintNbrInOrder(n int) { + +} +``` + +### Usage + +Here is a possible [program](TODO-LINK) to test your function : + +```go +package main + +import piscine ".." + +func main() { + piscine.PrintNbrInOrder(321) + piscine.PrintNbrInOrder(0) + piscine.PrintNbrInOrder(321) +} +``` + +And its output : + +```console +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test +1230123 +student@ubuntu:~/piscine-go/test$ +```