3个回答
展开全部
#include"stdio.h"
void main()
{
int a,b,c;
printf("请输入整数系数\n");
scanf("%d %d %d",&a,&b,&c);
printf("%f",(4.0*a*c-b*b)/(4*a));
}
void main()
{
int a,b,c;
printf("请输入整数系数\n");
scanf("%d %d %d",&a,&b,&c);
printf("%f",(4.0*a*c-b*b)/(4*a));
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
6
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
#include<stdio.h>
#include<conio.h>
void main()
{
int x,a,b,c;
float Y;
clrscr();
printf("Please input 3 numbers:\n");
scanf("%d%d%d",&a,&b,&c);
printf("The equation is:Y=%d*x^2+%d*x+%d",a,b,c);
if(a!=0&&a>0)
{
x=-b/(2*a);
Y=(4*a*c-b*b)/(4*a);
printf("\nWhen x is %d the equation can make a min\n",x);
printf("The min of the equation is:%f",Y);
}
else if(a!=0&&a<0)
{
x=-b/(2*a);
Y=(4*a*c-b*b)/(4*a);
printf("\nWhen x is %d the equation can make a max\n",x);
printf("The max of the equation is:%f",Y);
}
getch();
}
#include<conio.h>
void main()
{
int x,a,b,c;
float Y;
clrscr();
printf("Please input 3 numbers:\n");
scanf("%d%d%d",&a,&b,&c);
printf("The equation is:Y=%d*x^2+%d*x+%d",a,b,c);
if(a!=0&&a>0)
{
x=-b/(2*a);
Y=(4*a*c-b*b)/(4*a);
printf("\nWhen x is %d the equation can make a min\n",x);
printf("The min of the equation is:%f",Y);
}
else if(a!=0&&a<0)
{
x=-b/(2*a);
Y=(4*a*c-b*b)/(4*a);
printf("\nWhen x is %d the equation can make a max\n",x);
printf("The max of the equation is:%f",Y);
}
getch();
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询