Skip to content

Commit

Permalink
testers
Browse files Browse the repository at this point in the history
  • Loading branch information
nathfavour committed Mar 3, 2024
0 parents commit 3559425
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added Modules/Brain/brain.rs
Empty file.
Empty file.
Empty file added Modules/Feedback/feedback.rs
Empty file.
Empty file added Modules/Updater/updater.rs
Empty file.
Empty file added Modules/input_validation.rs
Empty file.
22 changes: 22 additions & 0 deletions Modules/invert.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

use std::io;

fn main() {
// Declare a mutable string variable to store user input
let mut input_string = String::new();

println!("Enter a string: ");

// Read the user input from the standard input
io::stdin()
.read_line(&mut input_string)
.expect("Failed to read input");

// Trim whitespace (e.g., the trailing newline) from the input
let input_string = input_string.trim();

// Reverse the string using Rust's built-in string manipulation
let reversed_string = input_string.chars().rev().collect::<String>();

println!("Reversed string: {}", reversed_string);
}
Empty file added Modules/output_validation.rs
Empty file.
Empty file added Modules/processor.rs
Empty file.
Empty file added Modules/search.rs
Empty file.

0 comments on commit 3559425

Please sign in to comment.