摘要: #include#includeint main(){double a,b;scanf("%lf%lf",&a,&b);printf("%.5lf\n",a*sqrt(b));return 0;} 阅读全文
posted @ 2015-03-26 07:46 李京泽 阅读(885) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeint main(){float a,b,c,s,area;scanf("%f%f%f",&a,&b,&c);s=1.0/2*(a+b+c);area=sqrt(s*(s-a)*(s-b)*(s-c));printf("a=%7.2f,b=%7.2f,... 阅读全文
posted @ 2015-03-26 07:44 李京泽 阅读(3881) 评论(3) 推荐(1) 编辑
摘要: #include#define PI 3.14159main(){double a;scanf("%lf",&a);printf("%lf\n",PI*a*a);printf("%lf\n",2*PI*a);} 阅读全文
posted @ 2015-03-25 15:23 李京泽 阅读(451) 评论(0) 推荐(0) 编辑
摘要: #include#includemain(){int x,y,n,m ,z; scanf("%d%d%d",&x,&y,&n);z=max(x,y);m=max(n,z);printf("%d.\n",m);} int max(int a,int b){if(a>b) return a;els... 阅读全文
posted @ 2015-03-25 14:59 李京泽 阅读(604) 评论(0) 推荐(0) 编辑
摘要: #includemain(){printf("\101 \x42 C\n");printf("I say:\"How are you\?\"\n");printf("\\C Program\\\n");printf("Turbo \'C\'");} 阅读全文
posted @ 2015-03-25 14:48 李京泽 阅读(471) 评论(3) 推荐(1) 编辑
摘要: #include#includeint main(){int a,b;int i=0;printf("char:%d bytes.\n",sizeof(char));printf("short:%d bytes.\n",sizeof(short));printf("i:%d bytes.\n",si... 阅读全文
posted @ 2015-03-25 14:45 李京泽 阅读(606) 评论(0) 推荐(0) 编辑
摘要: #includemain(){int i=5,b;b=i++;printf("%d,%d\n",i,b);printf("%d\t",++i);printf("%d\t",-i);printf("%d\t",-i++);} 阅读全文
posted @ 2015-03-21 10:48 李京泽 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include#includemain ( ) { float a ,b ,c ,average; scanf ( "%f%f%f" ,&a ,&b ,&c ); average=(a+b+c) / 3.0 ; printf("a=%f,b=%f ,c=%f ... 阅读全文
posted @ 2015-03-21 10:45 李京泽 阅读(386) 评论(0) 推荐(0) 编辑
摘要: #include#include main(){double a,b; scanf("%lf%lf",&a,&b); printf("%.5lf\n",a/b);return 0 ;} 阅读全文
posted @ 2015-03-21 10:20 李京泽 阅读(504) 评论(2) 推荐(0) 编辑