Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!emory!mephisto!uflorida!winnie!zach.fit.edu!la086318 From: la086318@zach.fit.edu ( Mark R. Craig) Newsgroups: comp.sys.amiga Subject: Aztec C bug Message-ID: <1225@winnie.fit.edu> Date: 13 Jul 90 21:01:07 GMT Sender: usenet@winnie.fit.edu Reply-To: la086318@zach.fit.edu ( Mark R. Craig) Distribution: usa Organization: Florida Institute of Technology, ACS, Melbourne, FL Lines: 28 I'm sure this has been covered before, but does anyone know why the following won't run correctly: #include #include main() { float x,y; printf("Enter x: "); scanf("%f",&x); printf("x=%f\n",x); printf("Enter y: "); scanf("%f",&y); printf("y=%f\n",y); } it asks for x, you type in x, it prints x= (but no number), doesn't go to next line, prints Enter y (but doesn't wait for keyboard input), prints y= (but no number), and crashes. I'm using Aztec C. Any help would be appreciated. Mark R. Craig Mark R. Craig Internet: la086318@zach.fit.edu UUCP: ...!winnie!zach!la086318