题目
C程序编写 求ax²+bx+c=0方程的根 设b²-4ac>0
提问时间:2020-08-13
答案
/*输入参数a,b,c,使用空格隔开*/
#include
#include
#include
int main()
{
int a,b,c;
float x1,x2;
printf("Input a,b,c: ");
scanf("%d %d %d",&a,&b,&c);
printf("%dx^2+%dx+%d=0 ",a,b,c);
if(b*b-4*a*c
#include
#include
#include
int main()
{
int a,b,c;
float x1,x2;
printf("Input a,b,c: ");
scanf("%d %d %d",&a,&b,&c);
printf("%dx^2+%dx+%d=0 ",a,b,c);
if(b*b-4*a*c
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 1Bill,without,money,Gates,has,enough,a,relaxing,live,life,worries,to,any.连词成句
- 2直线方程的设法
- 3This man ______; he is too ill to be moved.(2 分)
- 4把下面词语的意思用一个字表达出来
- 5And none will come after
- 6TV commercial 的广告语一般用哪种类型的动词?
- 7次外层电子数为最外层电子数1/3
- 8英语英汉互译,词组
- 93x^4-2x^3-9x^2+12x-4=0怎么因式分解的?
- 10某人晚上六点多离家外出,时针与分针的夹角是110°,回家时发现时间还未到七点,且时针与分针的夹角仍为110°,请你推算此人外出了多长时间?