Write a C++ Program to Print Number Entered by User


C++ Program

#include <iostream>
using namespace std;

int main()
{    
    int number;

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

    cout << "The number entered : " << number;    
    return 0;
}

Output


Enter an integer: 23
The number entered : 23

👈       👉