#include<stdio.h>voidmain()
{
doublea,b,c,min;
printf("請輸入三個數\n");
scanf("%lf,%lf,%lf",&a,&b,&c);
if(a>b){
if(b>c)
min=c;
else
min=b;
}
elseif(a>c)
min=c;
else
min=a;
printf("min=%lf\n",min);
}
#include<stdio.h>voidmain()
{
doublea,b,c,min;
printf("請輸入三個數\n");
scanf("%lf,%lf,%lf",&a,&b,&c);
if(a>b){
if(b>c)
min=c;
else
min=b;
}
elseif(a>c)
min=c;
else
min=a;
printf("min=%lf\n",min);
}