Answers for "how to print integer in c++"

C++
0

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