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
Define stl.
Write a program to concatenate two strings.
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
What happens when the extern "c" char func (char*,waste) executes?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What is the difference between public, private, and protected access?
What are objects in oop?
What is array in c++ example?
what is a reference variable in C++?
Is c++ a dying language?
What is new keyword in oops?
what you know about c++?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
How many types of scopes are there in c++?