Skip to content

Instantly share code, notes, and snippets.

View DenialAdams's full-sized avatar
🌵
(⌐■_■)

Richard McCormack DenialAdams

🌵
(⌐■_■)
View GitHub Profile
@DenialAdams
DenialAdams / pig-latin
Created November 17, 2018 17:43 — forked from goderich/pig-latin
A small program that takes a word (String) as input and translates it into Pig Latin
use std::io;
fn main() {
let mut input = String::new();
loop {
io::stdin().read_line(&mut input)
.expect("Failed to read line");
input = input.trim().to_string();
piglatinize(&mut input);
println!("{}", input);