【C/C++】有没有人告诉我这是为什么

初学C语言一天,按照书上的写,不知道为什么会这样,求解答
下面是我的代码(我的编程软件是Dev-C++)

#include<stdio.h>
#include<math.h> 
int main()
{
    double a,b,c,disc,x1,x2,p,q;
    scanf("%1f%1f%1f",&a,&b,&c);
    disc = b*b-4*a*c;
    p = -b/(2.0*a);
    q = sqrt(disc)/(2.0*a);
    x1 = p+q;
    x2 = p-q;
    printf("x1=%7.2f\nx2=%7.2f\n",x1,x2);
    return 0;
}

输入输出如下(第一行是输入)

img

【我会采纳最好的答案】

scanf("%lf %lf %lf", &a, &b, &c);错了,你把l写成1了

scanf("%lf %lf %lf",&a,&b,&c);
这一行最好这么写,中间有空格。