Quote:
Originally Posted by yoavagami
I need to write a code that get as an input a double, and if the user puts an "ENTER", it will continue, but the scanf function waits untill the user puts anything exept "ENTER".
Thank you.
does the user takes the inputs from a file?
if so ..
float num; // double
scanf("%f",&num);
while( !EOF ) // !EndOfFile
{
scanf("%f",&num);
}