#include <iostream>
using namespace std;
int main()
{
int entry;
cout << “Write a number: “;
cin >> entry;
cout << entry;
cin.get();
return 0;
}
Sample Output:
Write a number: 12
12
The above program was written with the intention that theprogram prompts the user to input a number and after the userinputs the number then the user waits for another input from theuser. However when we run the program the program does not wait forthe second input. Explain what is wrong with the program.
Expert Answer
An answer will be send to you shortly. . . . .