Question about program

Okay, so I'm trying to create this program. I believe I have it entered in right, but, when it runs, nothing comes up.
This is the code thus far:

#include <iostream> <cmath>

using namespace std;

int main()
{
cout << "Please Enter A Number." << endl;
return 0;
}
you don't need to include cmath for this program, but if you do want to want to then it should be on another line
1
2
#include <iostream>
#include <cmath> 


Your problem is probably just that the window disappears before you get a chance to take a look at the output. Check this thread out for ways to pause the console window http://cplusplus.com/forum/beginner/1988/
Thank you. That helped.
If you need to do mathematical calculations in your program then use <cmath>
Just to display a number you don't need to include cmath library.

Hope this is useful.
Topic archived. No new replies allowed.