Thanks to visit codestin.com
Credit goes to github.com

Skip to content

alexriegler/pig-latin-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig Latin Converter

This a project inspired by an exercise listed in The Rust Programming Language.

Excerpt from chapter 8 section 3:

Convert strings to pig latin. The first consonant of each word is moved to the end of the word and “ay” is added, so “first” becomes “irst-fay.” Words that start with a vowel have “hay” added to the end instead (“apple” becomes “apple-hay”). Keep in mind the details about UTF-8 encoding!

Example run:

> ./pig-latin.exe
Welcome to the Pig Latin converter!
Please enter a phrase to convert.
first
irst-fay
Please enter a phrase to convert.
apple
pple-hay
Please enter a phrase to convert.
quit
Thanks for using the Pig Latin converter!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages