Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::io::stdin;
- use std::{io, string};
- fn main() {
- println!("calculator");
- let mut number_one = String::new();
- println!("please provide your favorite number:");
- stdin().read_line(&mut number_one).expect("Error within input...");
- let number_one: i32 = number_one.trim().parse().expect("ERROR!");
- if number_one == 67 || number_one == 41 {
- println!("FUCK YOU");
- exit(true);
- }
- else{
- println!("i love you");
- }
- fn exit(shouldrun: bool){
- if (shouldrun){
- std::process::exit(0);
- }
- }
- }
Add Comment
Please, Sign In to add comment