Converting Temperature from Celsius to Fahrenheit

Intro Ever needed to quickly convert Celsius to Fahrenheit right from your terminal? Look no further! I’ve put together a neat little command-line tool in Rust that does just that. It’s a great example of Rust’s simplicity and power for building practical utilities. What It Does This project is a straightforward temperature converter. You run it, input a temperature in Celsius, and it instantly spits out the equivalent in Fahrenheit. No fuss, no complex GUIs – just pure, efficient command-line goodness. ...

June 29, 2025 · 1 min · SourFox

Hi there!

Hi there! Today, instead of writing another python program, I had wrote a rust program. In this code, the goal was to ask for user’s name and then reply back. Requirements: Ask for user name Replies back with ‘Hi, {name}, nice to meet you!’ The code: use std::io; fn main() { println!("What is your name?"); // Let's variable 'name' become mutable let mut name = String::new(); match io::stdin().read_line(&mut name) { Ok(_) => { //trims the string let trim1 = name.trim(); println!("Hi {}, nice to meet you.", trim1); }, Err(error) => println!("error: {error}"), } } That’s all! Hehehe. Bai bai.

May 11, 2025 · 1 min · SourFox