public/subjects/lastup
xpetit 46f4ddc49e
Simplify prompt, execution of Go programs, fix typos
2021-04-28 11:47:34 +02:00
..
README.md Simplify prompt, execution of Go programs, fix typos 2021-04-28 11:47:34 +02:00

README.md

lastup

Instructions

Complete the lastup function that takes a string and puts the last letter of each word in uppercase and the rest in lowercase.

Expected Functions

pub fn lastup(input: &str) -> String {
}

Usage

Here is a program to test your function.

use lastup::lastup;

fn main() {
    println!("{}", lastup("joe is missing"));
    println!("{}", lastup("jill is leaving A"));
    println!("{}",lastup("heLLo THere!"));
}

And its output

$ cargo run
joE iS missinG
jilL iS leavinG A
hellO therE!
$