I'm having a small problem with a program I'm working on, I keep getting the warning format '%1f' expects type 'float *' but argument 2 has type 'double *'
So I'm fairly sure it's a problem with my scanf
format.
I've tried looking all over for a solution but can't seem to find one.
This function reads in two numbers.
void read(double *n1, double *d1)
{
printf("Enter the number n1: ");
scanf("%1f", n1);
printf("Enter the number d1: ");
scanf("%1f", d1);
}