Mega Code Archive
Define float variable and output to the console
#include
int main()
{
int pints=1;
float price = 1.45;
printf("You want %d pint.\n",pints);
printf("That be $%f, please.\n",price);
return(0);
}
You want 1 pint.
That be $1.450000, please.