www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/03/05:21:32

Date: Mon, 3 Feb 1997 11:11:46 +0100 (MET)
From: Miguel Murillo <mmurillo AT ideafix DOT cps DOT unizar DOT es>
To: MCheu <matrix AT ionsys DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Help scanf?
In-Reply-To: <32f2a072.17736424@news.ionsys.com>
Message-ID: <Pine.LNX.3.95.970203111036.27634C-100000@ideafix.cps.unizar.es>
MIME-Version: 1.0

> 
> #include <stdio.h>
> 
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019