Write a C++ program to take any integer input and display it as output with a message.?

Home » Programming & Design » Write a C++ program to take any integer input and display it as output with a message.?
Programming & Design No Comments

Best Answer:

Vashisht: #include<iostream.h>
int main()
{
int num;
cout<<"Enter any number";
cin>>num;
cout<<num<<" Program run successfully";
return 0;
}

Other answer:

Vashisht:
int inputNum = 0;
cout << "Enter an integer number: ";
cin >> inputNum;
cout << "The number entered is: " << inputNum;
Victor:
lazy ***
Brian:
And the question is…?

LEAVE A COMMENT