Date: Mon, 3 Feb 1997 11:11:46 +0100 (MET) From: Miguel Murillo To: MCheu cc: djgpp AT delorie DOT com Subject: Re: Help scanf? In-Reply-To: <32f2a072.17736424@news.ionsys.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > #include > > main() > { > /* Declare */ > double a, b, c ; Error -- > > /* Grab Input */ > printf("Please enter your information in the following > format\n"); > printf("a(9999.99) b(9999.99) c (9999.99)\n"); > scanf("%f",&a); > scanf("%f",&b); > scanf("%f",&c); Error double is lf float is f > > > /*Display abc */ > printf (" a : %7.2f\n",a); > printf (" b : %7.2f\n",b); > printf (" c : %7.2f\n",c); > > return 0; > } Good luck! Miguel