摘要:
#includedouble fact_s(int n);int main(void){ int i,n; printf("Input n:"); scanf("%d",&n); for(i=1;i<=n;i++) printf("%3d!=%.0f\n",i,fact_s(i)); return 0;}double fact_s(int n){ static double f=1; f=f*n; return(f);} 阅读全文
posted @ 2013-10-04 10:25
huangsilinlana
阅读(79)
评论(0)
推荐(0)
摘要:
#includefloat cash;int main(void){ int choice; float value; void income(float number),expend(float number); cash = 0; printf("Enter operate choice(0--end,1--income,2--expend):"); scanf("%d",&choice); while(choice!=0){ if(choice==1||choice==2){ printf("Enter cash value:&q 阅读全文
posted @ 2013-10-04 09:26
huangsilinlana
阅读(99)
评论(0)
推荐(0)

浙公网安备 33010602011771号