文件名称:ORDER2-EQUATION
介绍说明--下载内容均来自于网络,请自行研究使用
#include<stdio.h>
#include<conio.h>
#include<math.h>
main(){
float delta,a,b,c
float x,x1,x2,z
printf("enter a:")
scanf(" f",&a)
printf("enter b:")
scanf(" f",&b)
printf("enter c:")
scanf(" f",&c)
delta=(b*b)-((4)*(a)*(c))
if(delta<0)printf("delta < 0")
if(delta==0){
x=(-b)/(2*a)
printf("X = 3.2f",x) }
if(delta>0){z=sqrt(delta)
x1=(-b-z)/(2*a)
x2=(-b+z)/(2*a)
printf("x1 = 3.2f",x1)
printf("\nx2 = 3.2f",x2) }
printf("\n")
getch()
}-#include<stdio.h>
#include<conio.h>
#include<math.h>
main(){
float delta,a,b,c
float x,x1,x2,z
printf("enter a:")
scanf(" f",&a)
printf("enter b:")
scanf(" f",&b)
printf("enter c:")
scanf(" f",&c)
delta=(b*b)-((4)*(a)*(c))
if(delta<0)printf("delta < 0")
if(delta==0){
x=(-b)/(2*a)
printf("X = 3.2f",x) }
if(delta>0){z=sqrt(delta)
x1=(-b-z)/(2*a)
x2=(-b+z)/(2*a)
printf("x1 = 3.2f",x1)
printf("\nx2 = 3.2f",x2) }
printf("\n")
getch()
}
#include<conio.h>
#include<math.h>
main(){
float delta,a,b,c
float x,x1,x2,z
printf("enter a:")
scanf(" f",&a)
printf("enter b:")
scanf(" f",&b)
printf("enter c:")
scanf(" f",&c)
delta=(b*b)-((4)*(a)*(c))
if(delta<0)printf("delta < 0")
if(delta==0){
x=(-b)/(2*a)
printf("X = 3.2f",x) }
if(delta>0){z=sqrt(delta)
x1=(-b-z)/(2*a)
x2=(-b+z)/(2*a)
printf("x1 = 3.2f",x1)
printf("\nx2 = 3.2f",x2) }
printf("\n")
getch()
}-#include<stdio.h>
#include<conio.h>
#include<math.h>
main(){
float delta,a,b,c
float x,x1,x2,z
printf("enter a:")
scanf(" f",&a)
printf("enter b:")
scanf(" f",&b)
printf("enter c:")
scanf(" f",&c)
delta=(b*b)-((4)*(a)*(c))
if(delta<0)printf("delta < 0")
if(delta==0){
x=(-b)/(2*a)
printf("X = 3.2f",x) }
if(delta>0){z=sqrt(delta)
x1=(-b-z)/(2*a)
x2=(-b+z)/(2*a)
printf("x1 = 3.2f",x1)
printf("\nx2 = 3.2f",x2) }
printf("\n")
getch()
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ORDER2 EQUATION.docx