c语言试题:淘宝商城促销活动,一次性购物满300元(以上)的打九折,一次性购物满500元(以上)的
#include <stdlibh>
#include <stdioh>
#include <timeh>
int main()
{
double money;
double result;
scanf("%lf",&money);
if (money>=300&&money<500) result=money09;
else if (money>=500&&money<800) result=money085;
else if (money>=800) result=money08;
printf("%1lf\n",result);
}
{
var newArray=new Array();
for(var i=0;i<thislength;i++)
{
for(var j=0;j<thislength;j++)
{
if(j!=i&&this[j]==this[i])
{
newArraypush(this[i])
thissplice(i,1);
i--;
break;
}
}
}
return newArray;
}
<body>
<script type="text/javascript">
ArrayprototypeExtractRepeat=function()
{
var newArray=new Array();
for(var i=0;i<thislength;i++)
{
for(var j=0;j<thislength;j++)
{
if(j!=i&&this[j]==this[i])
{
newArraypush(this[i])
thissplice(i,1);
i--;
break;
}
}
}
return newArray;
}
var arr = new Array()
arrpush("George")
arrpush("Thomas")
arrpush("George")
arrpush("George")
arrpush("James")
arrpush("George")
arrpush("Martin")
arrpush("George")
arrpush("Thomas")
arrpush("Thomas")
arrpush("James")
arrpush("Thomas")
arrpush("James")
documentwrite(arr + "<br />")
documentwrite(arrExtractRepeat()+ "<br />")
documentwrite(arr + "<br />")
</script>
</body>
</html>
#include <stdioh>
#include <timeh>
int main()
{
double money;
double result;
scanf("%lf",&money);
if (money>=300&&money<500) result=money09;
else if (money>=500&&money<800) result=money085;
else if (money>=800) result=money08;
printf("%1lf\n",result);
}
背面长城一元硬币是长城币,是一种纪念币。
长城币包括:1角,2角,5角,1元四种面值。长城币共发行了7年(1980-1986)。
其中对社会公开发行只有四年(1980、1981、1983、1985),2角币对社会公开发行仅三年(1980、1981、1983)。
1996年沈阳造币厂百年庆典,道出此套币的发行量仅为660套。
扩展资料
据了解,作为当代中国流通纪念币的开山鼻祖,“长城币”是由铜镍合金和铜锌合金制成的流通币,得名于背面的长城图案。这种货币发行起于1980年,至1986年结束。“长城币”仅发行了7套。一套长城币包括1分,2分,5分,1角,2角,5角,1元等7枚,总面值1元8角8分。
而这7套“长城币”中,最贵的是1986年版。因为那年的“长城币”一共只有几千套,并且没有在国内发行,是国家作为外交赠品送给各国外交人员的礼物。现在如果可以集齐1986年的1角,2角,5角,1元,四枚“长城币”,就可以卖出15万元左右的高价。
参考资料来源:凤凰网-86年版长城币堪比猴票 面值188元卖价15万
参考资料来源:百度百科-长城币
ArrayprototypeExtractRepeat=function(){
var newArray=new Array();
for(var i=0;i<thislength;i++)
{
for(var j=0;j<thislength;j++)
{
if(j!=i&&this[j]==this[i])
{
newArraypush(this[i])
thissplice(i,1);
i--;
break;
}
}
}
return newArray;
}
复制一下内容,新建txt,粘贴,重命名为html,浏览即可。
<html><body>
<script type="text/javascript">
ArrayprototypeExtractRepeat=function()
{
var newArray=new Array();
for(var i=0;i<thislength;i++)
{
for(var j=0;j<thislength;j++)
{
if(j!=i&&this[j]==this[i])
{
newArraypush(this[i])
thissplice(i,1);
i--;
break;
}
}
}
return newArray;
}
var arr = new Array()
arrpush("George")
arrpush("Thomas")
arrpush("George")
arrpush("George")
arrpush("James")
arrpush("George")
arrpush("Martin")
arrpush("George")
arrpush("Thomas")
arrpush("Thomas")
arrpush("James")
arrpush("Thomas")
arrpush("James")
documentwrite(arr + "<br />")
documentwrite(arrExtractRepeat()+ "<br />")
documentwrite(arr + "<br />")
</script>
</body>
</html>
0条评论