Recap - True or False
Part of the Fundamentals section of Coddy's Rust journey — lesson 32 of 75.
Challenge
BeginnerWrite a program that gets an input from the user.
The program will output T if the input equals to 1 and F otherwise.
Compare the input as a string — do not parse it as an integer.
Try it yourself
use std::io;
fn main() {
// Write your code below
}All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsComparison OperatorsString Comparison5Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 33Variables Part 2
Type DeclarationNaming ConventionsType InferenceRecap - Initialize VariablesType Casting9Loops
For Over SeriesWhile LoopBreakContinueNested LoopLoop LabelsInfinite LoopRecap - Dynamic Input