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); }
I need to get input a double, and if the user puts "ENTER", it will continue (when I do scanf(%lf,&num); it "waits" untill I input something and just after that it will continue.. (I'm not using files..)