摘要: 1 #include 2 int main(void) 3 { 4 float x,y,z; 5 printf("Please input the x,y,z: "); 6 scanf("%f%f%f",&x,&y,&z); 7 if ((x+y)>z && (x+z)>y && (y+z)>x ) 8 printf("YES"); 9 else 10 printf("NO!");11 return 0;12 } 阅读全文
posted @ 2013-12-06 16:27 ASMLearner 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main(void) 3 { 4 int x,i,j; 5 printf("Please input the length(1-20): \n"); 6 scanf("%d",&x); 7 for (i=1;i<=x;i++) 8 printf("* "); 9 printf("\n");10 for (i=1;i<=x-2;i++)11 {12 printf("* ");13 for (j=1;j<=x-2;j++)14 {15 .. 阅读全文
posted @ 2013-12-06 00:26 ASMLearner 阅读(330) 评论(0) 推荐(0) 编辑