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

Ram Pothuraju
#include <iostream>
using namespace std;



int main() {
    
    int number;
    cout << "Enter an integer: ";
    cin >> number;
    cout << "You entered " << number;
    
    return 0;
}


Output

Enter an integer: 23
You entered 23

Post a Comment

0Comments

Post a Comment (0)