printing value in c++ code example
Example 1: c++ output
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
Example 2: c++ cout int
#include <iostream>
std::cout << "Hello, World!" << std::endl;