input and output statements in cpp code example
Example 1: cin in c++
cin >> varName;
Example 2: how to cout in c++
std::cout << "Hello World!" << std::endl; //Or you can do
std::cout << "Hello World!" <<; //Only in some scenarios
cin >> varName;
std::cout << "Hello World!" << std::endl; //Or you can do
std::cout << "Hello World!" <<; //Only in some scenarios