C/C++の宿題片付けます 128代目
at TECH
464:デフォルトの名無しさん
09/07/02 21:29:15
>>463
#include <stdio.h>
#include <float.h>
int main(void){
double n;
double low = DBL_MAX;
double ans = 0;
int i;
for(i=0; i<10; ++i){
scanf("%lf", &n);
ans += n;
if(n < low) low = n;
}
ans -= low;
printf("%f\n", ans);
return 0;
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5079日前に更新/375 KB
担当:undef