发布时间:2014-12-15 11:36:21
#include <stdio.h>int equation(double a,double b,double c) { if(b*b-4*a*c>0) { return 2; } else if(b*b-4*a*c>0) { return .........【阅读全文】
发布时间:2014-12-15 11:00:59
#include <stdio.h>double calculetor(double a,double b, char myoperator){ if(myoperator=='+') { return a+b; } else if(myoperator=='-') { return a-b; } else if(myoperator=='*') { return a*b; } else .........【阅读全文】
发布时间:2014-11-26 21:05:31
#include int main(){float factor_1,factor_2 ;double result;char operation; scanf("%f%c%f",&factor_1 , &operation ,&factor_2 );if(operation =='+'){result=factor_1+factor_2; printf("sum is %lf\n",result);}else if(operation == '-')&n.........【阅读全文】
发布时间:2014-11-24 16:26:26
/* ************************************************************ NAME : LISHUBO AUTHOR : .........【阅读全文】
发布时间:2014-11-24 16:11:54
(1)小数的除法:#include int main(){ float a,b,eliminate; scanf("%f %f",&a,&b); eliminate=a/b; printf("eliminate is %f\n",eliminate); return 0;}如图:(2)小数的乘法:#include int main(){ float a,b,ride; scanf("%f %f",&a,&b).........【阅读全文】