Recap - True or False
Part of the Fundamentals section of Coddy's C++ journey — lesson 37 of 74.
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.
Try it yourself
#include <iostream>
#include <string>
int main() {
std::string inpt;
std::cin >> inpt;
// Write your code below
return 0;
}All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsModulo OperatorIncrement/DecrementPost Increment/DecrementArithmetic ShortcutsComparison OperatorsString Comparison3Variables Part 2
Type DeclarationNaming ConventionsRecap - Initialize VariablesType Casting Part 1Type Casting Part 26Decision Making
If StatementIf - ElseSwitch StatementConditional OperatorRecap - If ElseNested If - Else