cout in C++ Language:
(1) “cout<<” is used for printing output value or text.
(2) Sample C++ language code and its output, as shown:
#include <iostream> using namespace std; int main() { cout << “My first C++ Language code!”; return 0; } |
(3) After that go to the “Build” menu and select the “Build” option for publishing the code as shown.
(4) After building the code, press the “Run” button, as shown.
(5) After pressing the “run” button, the output screen is opened, as shown.