Computer scienceProgramming languagesC++Getting started with C++

First look at input/output

Theory

Construct a program

Report a typo

Build working code using existing knowledge:

Remember that correct indentation is also important for this task.
Reorder lines using drag or arrows. Adjust indentation with left buttons
                int age;
              
                cout << "Enter your age: ";
              
                #include <iostream>
              
                using namespace std;
              
                return 0;
              
                //the main entry point
              
                int main(){
              
                cout << "Your age = " << age << endl;
              
                }
              
                cin >> age;
              
___

Create a free account to access the full topic