printf("a%f ,b = %f,are = %f\n" ,a,b,area);printf("a%f ,b = %f,area = %f\n" ,a,b,area); b=%f和 area = %f\n" 和 a,b,area
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 23:46:08
x͑J@_%rL$^0ॄimR[l+Mj)?cS2;WpJ@7a|3ߏ]Ihꑺ,Q Dg^ ( ~k,pa _鑔Zo?Olf~g)i?ƣ>`μ LcnN7'@-{@_X<~&<-3Pt}Ǜ.~ҤEXvK.7o79؟Y`,kmA'<q-'ŌM9Xa ~@3ȱ4`h.QwΙBjRP{> v?O
printf(a%f ,b = %f,are = %f
,a,b,area);printf(a%f ,b = %f,area = %f
,a,b,area); b=%f和 area = %f
和 a,b,area
#include main() { float a,b,e; scanf (%f,%f,&a,&b); e=a-b; printf(e=%f
); }
计算机的算数中有个printf(“a=%f,b=%f,area=%f/n,a,b,area);
c语言:float a=1.2,b=1.8;a-=b;printf(a=%f,b=%f
,a,b);a+=b++==0;printf(a=%f,b=%f
,a,b);
main(){float a,b,x;printf (请输入要交换的a和b的值
);printf (a=);scanf (%f/n,&a);printf (b=);scanf (%f/n,&b);x=a;a=b;b=x;printf (a=%f
,&a);printf (b=%f
,&b);}为什么我输入什么数字,输出的都是 A=0 ,B=0 谁可以
printf(%3.0f%3.0f
,pow(b,fabs(a)),pow(fabs(a),b));
#include main() { float a,b,c,s,area; printf(a,b,c(f)); scanf(%f,%f,%f,&a,&b,&c); s=(ab+c)/2;area=sqrt(s*(s-a)*(s-b)*(s-c));printf(a=%7.2f,b=%7.2f,c=%7.2f,s=%7.2f
,a,b,c,s);printf(area=%7.2f
,area);} 中的 area=sqrt(s*(s-a)*(s-b)*(s-c));
#include #include main() { float a; int b; a=4.55 ; b=4.5%3; printf(%f
%d,a,#include#includemain(){float a;int b;a=4.55 ;b=4.5%3;printf(%f
%d,a,b);getch();}
#define f(x) x*x main() {int a=6,b=2,c; C=f(a)?f(b); printf(%d
,c);}
C语言,交换两个数#includeint main(){double a,b,c;scanf(%f,%f,&a,&b);c=a;a=b;b=c;printf(a=%f,b=&f
,a,b);return 0;}
什么地方错了?三角形面积#includeint main(){float a,b,c,h,area;printf(Please input a,b,c:);scanf(%f%f%f,&a,&b,&c);h=(a+b+c)/2;area=sqrt(h*(h-a)*(h-b)*(h-c));printf(a=%7.2f,b=%7.2f,c=%7.2f,h=%7.2f
,a,b,c,h);printf(三角形的面积=%
C中计算变量A/B的余数为什么要2个%main(){ int a,b,c,d,e,f,g; scanf(%d%d,&a,&b); c=a+b; d=a-b; e=a*b; f=a/b; g=a%b; printf(a+b=%d
,c); printf(a-b=%d
,d); printf(a*b=%d
,e); printf(a/b=%d
,f); pr
C语言写二次函数#include #include #include int main() { float a,b,c;float x1,x2,m;printf(input number a=:);scanf(%f,&a);printf(input number b=:);scanf(%f,&b);printf(input number c=:);scanf(%f,&c);m=b*b-4*a*c;x1=(-b+sqrt(m))/(2*a);x2
请问C语言中printf(b=%8.5f
,b);printf(c=%7.4f
,c);printf(c=%10.7f
,c);这里面的%8.5f %7.4f %10.
#include void main() { float a,b,t; scanf( %f,%f,&a,&b); if(a>b) { t=a; a=b; b=t; } pri#includevoid main(){float a,b,t;scanf( %f,%f,&a,&b);if(a>b){t=a;a=b;b=t;}printf(%f,%f
,a,b);}为什么输入负数 输出的全是乱七八糟的饿
c语言,判断能否构成三角形?#include int main(){float a,b,c,s;printf(please input three numbers a,b,c:);scanf(%f%f%f,&a,&b,&c);if(a+b>c&&a+c>b&&b+c>a){s = 1/2*(a+b+c);printf(area = %f
,s);}elseprintf(不能构成三角形
);return 0
C++矩形面积计算main(){ float a,b,S; a=10.2; b=5.3; S=a*b; printf(a=%f,b=%f,S=%f
,a,b,S);}还有一个错误,哪里错了啊?
C语言求方程的实数解#include#includevoid main(){float a,b,c,k,x,y;printf(input a,b,c:);scanf(%f,%f,%f,&a,&b,&c);k=b*b-4*a*c;if(fabs(a)