使用if语句求一元一次方程解乱码

问题代码如下:
#include
#include
#include

int main()

 {  
 double a, b, c, disc, x1, x2, p, q;

scanf_s("%lf%lf%lf", &a, &b, &c);

disc = b * b - 4 * a*c;

if ( disc<0 )

printf("这个方程没有实数根");

else

    {
    p = -b / (2.0 * a);
    q = sqrt(disc) / (2.0 * a);
    x1 = p + q;
    x2 = p - q;
    printf("这个方程的根是:x1=%5.5fx2=%5.5f", x1, x2);

}

        system("pause");

        return 0;

}
  具体问题是:![图片说明](https://img-ask.csdn.net/upload/201904/22/1555920794_722237.png)![图片说明](https://img-ask.csdn.net/upload/201904/22/1555920801_828870.png)

看不了图片,如果乱码地话可能是字符集转换的问题

#include
void main()
{
int a=0;
while(1)
{
if(3*a+21==4*a+1)
{
printf("a=%d",a);
break;
}
else
a++;
}
}

在调试框中输入数据时,用空格隔开数据,就不会出现乱码情况。