C++ Artificial intelligence | Input & Output