Answers for "how do u print out a value in c++"

C++
14

how to print in c++

#include <iostream>

int main() {
  std::cout << "Hello, World!"; // prints 'Hello, World!' to the output.
  return 0;
}
Posted by: Guest on May-02-2020
0

Print value of data in c++

#include<iostream>
using namespace std;
int main()
{
    int num=10;
    cout<<"The Value of 'num' is "<<num;
    cout<<endl;
    return 0;
}
Posted by: Guest on August-25-2021

Code answers related to "how do u print out a value in c++"

Browse Popular Code Answers by Language