题目内容

/*-------------------------------------------------------【程序填空】-------------------------------------------------------题目:某地电信公司规定,拨打市内电话时,如果通话时间不超过3分钟,按0.22元收取通话费,超过3分钟,则超过部分按每分钟0.1元收费,不足1分钟按1分钟计算。输入通话时间x(不考虑负数),计算出相应的通话费用y。y=0.22(x<=3)y=0.22+0.1(x-3)(x为大于3的整分钟)y=0.22+0.1([x-3]+1)(x为大于3的非整分钟)其中[x-3]为取整请在空内填入正确的内容。-----------------------------------------------------*/#includemain(){floatx,y;/***********SPACE***********/____/***********SPACE***********/if(____)y=0.22;/***********SPACE***********/elseif(____x-x==0)y=0.22+0.1*(x-3);else/***********SPACE***********/y=0.22+0.1*(____(x-3)+1);/***********SPACE***********/printf("通话%f分钟的通话费为%f\n",____);}

查看答案
更多问题

/*-------------------------------------------------------【程序填空】-------------------------------------------------------题目:输入年y,月m,计算出该年该月有多少天。其中判断闰年的条件是:能被4整除但不能被100整除的年是闰年,能被400整除的年也是闰年。请在空内填入正确的内容。-----------------------------------------------------*/#includemain(){intd,y,m,t;printf("请按次序输入年,月\n");scanf("%d,%d",&y,&m);/***********SPACE***********/if(y%4==0____y%400==0)/*不要使用空格*/t=1;elset=0;/***********SPACE***********/switch(____){case1:case3:case5:case7:case8:case10:case12:d=31;break;/***********SPACE***********/case4:case6:case9:case11:____/***********SPACE***********/case2:d=____;}/***********SPACE***********/printf("%d年的%d月有%d天\n",____);}

Loving nature, however, I was most delighted by the endless patchwork of farms and woodland that surrounded our house.(para. 2)

Keeping to myself was my way of not forming attachments that I would only have to abandon the next time we moved.(para. 3)

My own breathing rang in my ears, and the slightest stirring of any woodland creature echoed through this private paradise.(para. 4)

答案查题题库