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.
 
 
 
 
 
 
xpetit 32eddefd09
Remove template variable [[ROOT]] from subjects and fix subjects
4 years ago
..
README.md Remove template variable [[ROOT]] from subjects and fix subjects 4 years ago

README.md

rot14

Instructions

Write a function rot14 that returns the string within the parameter transformed into a rot14 string, that replaces a letter with the 14th letter after it, in the alphabet.

Expected function

func Rot14(s string) string {

}

Usage

Here is a possible program to test your function :

package main

import (
	piscine ".."
	"github.com/01-edu/z01"
)

func main() {
	result := piscine.Rot14("Hello How are You")

	for _, r := range result {
		z01.PrintRune(r)
	}
	z01.PrintRune('\n')
}

And its output :

student@ubuntu:~/rot14/test$ go build
student@ubuntu:~/rot14/test$ ./test
Vszzc Vck ofs Mci
student@ubuntu:~/rot14/test$