« first day (1860 days earlier)      last day (568 days later) » 

11:47 AM
Hey guys I am having code which outputs something like this when I run and type 33 in console:

33

Enter the number: The number that was entered is: 33

But I want it to be:
Enter the number: 33 The number that was entered is: 33

That is what I want it, eclipse cdt should printf "Enter the number: " in console, then wait for my input thru scanf, then printf "The number that was entered is:". But that is not happening. What I am doing wrong? my main() looks like this:

int main()
{
int num, *pnum;
 
1 message moved from Lounge<C++>
 

« first day (1860 days earlier)      last day (568 days later) »