c++ print something after user input code example
Example 1: get data from terminal c++
int i;
cout << "Please enter an integer value: ";
cin >> i;
Example 2: c++ cout int
#include <iostream>
std::cout << "Hello, World!" << std::endl;
int i;
cout << "Please enter an integer value: ";
cin >> i;
#include <iostream>
std::cout << "Hello, World!" << std::endl;