hello,
i was wondering if you could help me. i am writing simple programs to help me get started in c and have a problem. when i run the program it just runs through and does not give me time to read the results. is this because the compiler i am useing or is it something i am not putting into the program.
i am useing Dev-C++ to compile.
this is a sample program i made:
#include <stdio.h>
main()
{
float num ;
printf ( "please enter a number \n" );
scanf ( "%f" ,&num ) ;
if (num <= 0)
printf ( " the number was less than 0 \n" );
else
printf ( "the number was greater than 0 \n" );
scanf ( "%f" ,&num ) ;
}
thanks,
Dave.