C语言编程:求1元2次方程的根
问题描述:
C语言编程:求1元2次方程的根
答
#include#includemain(){double a,b,c,x1,x2,temp,temp1;printf("请输入参数a的值为:\n");scanf("%lf",&a);printf("请输入参数b的值为:\n");scanf("%lf",&b);printf("请输入参数c的值为:\n");scanf("%lf",&c);tem...