hey im having a bit of trouble with this input loop. what is suposed to happen is its suposed to take a big list of 2 doubles on each line and then just print them out to prove they are being stored. but its not entering the loop at all as far as i can tell. any ideas to what im doing wrong??
thanks
Code:#include <stdio.h> #include <stdlib.h> int main(void) { double a2 = 0.0; double a3 = 0.0; while (1 == scanf("%lg %lg", &a2, &a3)) { printf("%f %f", a2, a3); } return EXIT_SUCCESS; }



LinkBack URL
About LinkBacks


