Hello,
my program is supposed to take 2 numbers separated by a comma and then run them through a loop to determine the GCD, but every time I run the program the scanf isn't reading the inputs and just keeps displaying white space like I haven't entered anything. It won't execute the code after scanf.
Here's the code snippet.
it never executes the GCDcheck = user1 * user2;Code:int user1; int user2; int GCDcheck; printf ("Enter the two (non-zero) integers: "); scanf ("%d,%d", &user1, &user2); GCDcheck = user1 * user2;
I've looked around and can't find something similar to this problem, any help or any insight would be greatly appreciated.