Answers for "printing a variable in c++"

C++
0

c++ output

#include <iostream>

int main(){
  std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
Posted by: Guest on October-07-2020
-1

how to print integer in c++

#include <iostream>
using namespace std;

int main()
{    
    int number;

    cout << "Enter an integer: ";
    cin >> number;

    cout << "You entered " << number;    
    return 0;
}
Posted by: Guest on January-06-2021

Browse Popular Code Answers by Language