Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

help

Posted by maxs at 2006-04-10 16:58:13 on Problem 1004
#include<stdio.h>
main()
{  long float a[12],b=0.0,c;
   int i;
   for(i=0;i<12;i++)
    { scanf("%lf",&a[i]);
      printf("\n");
      b+=a[i];
    }
   c=b/12.0;
   c=(int)(c*100+0.5);
   c=(long float)(c/100.0);
   printf("$%.2lf",c);
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator