Write a C++ Program to Display Number (Entered by the User).
Answer Posted / hr
Solution:
/* C++ Program to Display Number (Entered by the User) */
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Enter an integer :: ";
cin >> number;
cout << "
The Number entered is :: " << number<<"
";
return 0;
}
Output:
/* C++ Program to Display Number (Entered by the User) */
Enter an integer :: 8
The Number entered is :: 8
Process returned 0
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is oops and c++ same?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Who made c++?
What is stream in oop?
Describe delete operator?
What c++ is used for?
What is for loop and its syntax?
What happens if a pointer is deleted twice?
What is #include iostream in c++?
What's the "software peter principleā?
Explain the difference between using macro and inline functions?
What is the auto keyword good for in c++?
What is ostream in c++?
Differentiate between the message and method in c++?
What is a modifier in c++?