Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:这就是我对你程序的理解,努力加油呀!---slienceIn Reply To:Re:这就是我对你程序的理解,努力加油呀!---slience Posted by:luckyapple at 2006-07-01 10:00:04 怎么那么复杂的? ----------------- #include<stdio.h> #define pi 3.14159 int main(){ int number; int k=1; scanf("%d", &number); while(number>0){ float i,j; scanf("%f %f", &i, &j); printf("Property %d: This property will begin eroding in year %d.\n", k, (int)(pi*(i*i+j*j)/100)+1); number--;k++; } printf("END OF OUTPUT.\n"); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator