C++ Program to Print Integer

This C++ program is used to print given integer input by the user on the screen.
cin is used to obtain input and cout is used to print the number on the screen.

#include <iostream>
using namespace std;

int main()
    int number;

    cout > number;

Program Output:
Please enter an integer: 12
You enter the integer 12 

Scroll Back to Top