int main()
{
/* double baseFee=660, extraFee=88.5, taX=0.09, usAge=0, sumFee=0, totalFee=0;
printf("전기 사용량을 입력하세요(kw) :");
scanf("%lf",&usAge);
sumFee=baseFee+(usAge*extraFee);
totalFee=sumFee*(1+taX);
printf("전기 사용요금은 %f원 입니다.",totalFee);
char backNum;
double hitRate;
int aGe;
printf("등번호를 입력하세요:");
scanf("%c",&backNum);
printf("타율을 입력하세요:");
scanf("%lf",&hitRate);
printf("나이를 입력하세요:");
scanf("%d",&aGe);
printf("%c번 선수의 타율은 %lf이고 나이는 %d살입니다.",backNum,hitRate,aGe);
char backNum, playerName[6], playerPostion[6];
double hitRate;
int aGe;
printf("등번호를 입력하세요:");
scanf("%c",&backNum);
printf("이름을 입력하세요:");
scanf(" %s",playerName); //배열에는 &를 사용치 않음,배열이므로 %s
printf("포지션을 입력하세요:");
scanf(" %s",playerPostion); //배열
printf("타율을 입력하세요:");
scanf("%lf",&hitRate);
printf("나이를 입력하세요:");
scanf("%d",&aGe);
printf("%c번-%s-%s, 타율은 %lf이고 나이는 %d살입니다.",backNum,playerName,playerPostion,hitRate,aGe);
*/
int hisTory,liteRate,aRt,sUm;
double aVg;
printf("역사, 문학, 예능 점수를 입력하세요 :");
scanf("%d%d%d",&hisTory,&liteRate,&aRt);
sUm=hisTory+liteRate+aRt;
aVg=sUm/3;
printf("총점은 %d이고 평균은 %lf입니다",sUm,aVg);
/*
int timeConstant, timeHour,timeMin,timeSec, temp;
timeConstant=32767;
timeHour=timeConstant/60/60;
timeMin=(timeConstant-timeHour*60*60)/60;
// timeSec=(timeConstant-timeHour*60*60-timeMin*60);
timeSec=timeConstant%60;
printf("%d초는 %d시간, %d분, %d초입니다.",timeConstant, timeHour,timeMin,timeSec);
double preciseDay=365.2422, temp;
long calDay,calHour,calMin,calSec;
//calDay=preciseDay;
//calHour=(preciseDay-calDay)*24;
//calMin=(preciseDay*24-calDay*24-calHour)*60;
//calSec=(preciseDay*24*60-calDay*24*60-calHour*60-calMin)*60;
//위에처럼 풀면 소수점 아래 7번째에서 반올림되는 부분때문에 오류가 남
calDay=preciseDay;
temp=preciseDay*24-calDay*24;
//printf("%f",temp);
calHour=temp;
temp=temp*60-calHour*60;
//printf("%f",temp);
calMin=temp;
temp=temp*60-calMin*60;
//printf("%f",temp);
calSec=temp;
printf("1년은 %d일, %d시간, %d분, %d초입니다.",calDay,calHour,calMin,calSec);
*/
return 0;
}