标签:
比较两个浮点数的大小以及三目运算符
1 #include <stdio.h> 2 3 int main() 4 { 5 float x,y,c; 6 printf("pleast input x and y:\n"); 7 scanf("%f%f",&x,&y); 8 c=x>y?x:y; 9 printf("max of %f and %f is %f",x,y,c); 10 }
标签:
原文地址:http://www.cnblogs.com/lovywinsy/p/5136841.html