#include <stdio.h>

// //2. 将输入的a和b两个整数,比较后打印出较大值和较小值。

void checkBigger(double a, double b){
    double bigger,smaller;
    if (a<b){
        bigger = b;
        smaller = a;
    }
    else{
        bigger = a;
        smaller = b;
    }
    printf("最大值为%lf, 最小值为%lf", bigger, smaller);
}


int main(){
    checkBigger(1.2, 2.3);
    return 0;
}