j=a;
while(j)
{
i=10*i+(j%10);
j=j/10;
}
if(i==a)
printf("yes\n");
else printf("no\n");
return 0;
}
6·奖金发放
#include<stdio.h>
int main ()
{
float l;
scanf("%f",&l);
if (l<=10)l=l*0.1;
else if(l<=20)l=10*0.1+(l-10)*0.075;
else if(l<=40)l=10*0.1+10*0.075+(l-20)*0.05; else
百度搜索“70edu”或“70教育网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,70教育网,提供经典教育范文西工大POJ100题(全新)(8)在线全文阅读。
相关推荐: