Bhebhe
asked

Expert
Kelish Rai answered
The purpose of printing output — like using cout
in C++ — is to display something on the screen so you can see what your program is doing.
It helps you understand if your code is working as expected, especially when you're learning. Think of it as a way for your program to "talk" to you.
C++
This question was asked as part of the Learn C++ Basics course.