![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
POJ
helpzht
这个作者很懒,什么都没留下…
展开
-
POJ1004
#include int main(){ float num, sum=0; int i=1; do{ scanf("%f",&num); sum+=num; }while(i++<12); sum=sum/12; printf("$%.2f",sum); return 0;}原创 2013-09-04 15:11:36 · 487 阅读 · 0 评论 -
poj1003
#include void hangOver(float f){int i=0;float temp=0;float sum=0;for (i=2;sum{temp=(float)i;sum+=1/temp;} printf("%d card(s)\n",(i-2));}int main(){float sum;scanf("%f原创 2013-09-04 15:08:54 · 457 阅读 · 0 评论