摘要: #includeint main(){ int a,b,c,d; for(a=2,b=0;a<=1000;a++) { for(c=1,d=0;c<a;c++) { if(a%c==0) d=d+c; ... 阅读全文
posted @ 2014-12-06 15:23 fishegg 阅读(583) 评论(0) 推荐(0)
摘要: #includedouble f(float x){ return x*x+x;}double definf(float a,float b,int n){ int k; double h,tmp; h=(b-a)*1.0/n; for(tmp=0,k=1;k0);} 阅读全文
posted @ 2014-12-06 15:20 fishegg 阅读(2407) 评论(0) 推荐(0)
摘要: 不知道有没有问题……#include#include#includefloat areatri(float a,float b,float c);float main(){ float a,b,c; float s; char d;loop: printf("输入三角形... 阅读全文
posted @ 2014-10-28 17:59 fishegg 阅读(999) 评论(0) 推荐(0)
摘要: 貌似是超级复杂的算法……#includevoid main(){int h1,m1,h2,m2,timeh,timem;char e; printf("这是一个效率极低,用于计算你不在床上时长的程序,计算时请耐心等候\n"); loop1:printf("输入你的起床时间(hhrr)\n")... 阅读全文
posted @ 2014-10-12 19:18 fishegg 阅读(583) 评论(0) 推荐(0)