标签:
#include<stdio.h> float max(float x,float y){ float z=x>y?x:y; return z; } int main() { float a, b, c, t; scanf("%f%f%f", &a, &b, &c); if(a>b){t=a;a=b;b=t;} if(a>c){t=a;a=c;c=t;} if(b>c){t=b;b=c;c=t;} printf("%.0f\n", c); printf("%.0f\n", max(a,max(b,c))); return 0; }
标签:
原文地址:http://www.cnblogs.com/striderdu/p/4957325.html