c++ code in cout code example
Example 1: std cout c++
#include <iostream>
using std::cout;
int main()
{
cout<<"Hello world";
return 0;
}
Example 2: C++ cin cout
int age;
cout << "How old are you ?" << endl;
cin >> age;
#include <iostream>
using std::cout;
int main()
{
cout<<"Hello world";
return 0;
}
int age;
cout << "How old are you ?" << endl;
cin >> age;