how to read keyboard character and store as int in C++ code example
Example 1: how to get input from the console in c++
int age;
cin >> age;
Example 2: c++ cout int
#include <iostream>
std::cout << "Hello, World!" << std::endl;
int age;
cin >> age;
#include <iostream>
std::cout << "Hello, World!" << std::endl;