You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
miguel 5cbd82e5ef fix(itoa): student complained for lack of examples 3 months ago
..
README.md fix(itoa): student complained for lack of examples 3 months ago
main.go fix(itoa): student complained for lack of examples 3 months ago

README.md

itoa

Instructions

  • Write a function that simulates the behavior of the Itoa function in Go. Itoa transforms a number represented as anint in a number represented as a string.

  • For this exercise the handling of the signs + or - does have to be taken into account.

Expected function

func Itoa(n int) string {

}

Usage

Here is a possible program to test your function :

package main

import (
	"fmt"
	"piscine"
)

func main() {
    fmt.Println(piscine.Itoa(12345))
    fmt.Println(piscine.Itoa(0))
    fmt.Println(piscine.Itoa(-1234))
    fmt.Println(piscine.Itoa(987654321))
}

And its output :

$ go run .
12345
0
-1234
987654321
$

Notions