Menu
Coddy logo textTech

Recap - True or False

Part of the Fundamentals section of Coddy's C++ journey — lesson 37 of 74.

challenge icon

Challenge

Beginner

Write 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