Recap - Till 120
Part of the Fundamentals section of Coddy's C++ journey — lesson 36 of 74.
Challenge
BeginnerWrite a program that gets the user's age as input.
The program will output (print) the number of missing years till 120 (in a specific format, shown below).
For example, for input 25, the expected output is "95 years till 120".
Make sure to not print anything else!
Try it yourself
#include <iostream>
int main() {
// 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