You are on page 1of 1

1 #include <iostream> //headers file

2 #include <string>
3
4 using namespace std;
5
6 int main() //int is the function type and main is the function name
7 {
8 cout << "This is beginners program" << endl << endl; //<< indicates pushed to out and cout means
console output
9 cout << "Enjoy yourself with C++" << endl;
10 return 0; //terminate the main function and returning the value 0
11 }

You might also like