72Financial Management

#include<stdio.h>  
#include<stdlib.h>  
#include<string.h>   
int main() 

    double money[12],average, sum;  
    int i; 
    while(scanf("%lf",&money[0]) != EOF) 
    { 
        sum = money[0]; 
        for(i = 1; i <12; i++) 
       { 
            scanf("%lf",&money[i]); 
            sum += money[i]; 
        } 
        average = sum / 12.0;
        printf("%.2lf\n",average); 
    } 
    return 0; 

posted @ 2013-11-30 12:08  融雪残阳  阅读(96)  评论(0编辑  收藏  举报