i streams for standard input in c++ code example
Example 1: cin in c++
cin >> varName;
Example 2: c++ output
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
cin >> varName;
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl; // prints "Hello World"
}