C/C++
文章平均质量分 60
Happy-Worm
雄鹰小时候也叫菜鸟
展开
-
hello world
我的博客 #include void main() { cout<<"hello,world"<<endl; }原创 2016-04-12 16:07:12 · 245 阅读 · 0 评论 -
求100到999的水仙花数
//求100到999的水仙花数源代码 #include #include void main() { int a,b,c,d; for(a=1;a for(b=0;b for(c=0;c { if(pow(a,3)+pow(b,3)+pow(c,3)==a*100+b*10+c) printf("水仙花数是%d\n",a*100+b*10+c); } }原创 2014-12-18 13:25:32 · 1659 阅读 · 0 评论