C语言填空

[复制链接]
查看11 | 回复2 | 2008-4-14 17:25:43 | 显示全部楼层 |阅读模式
补充完整啊,这个程序想实现什么功能啊,
回复

使用道具 举报

千问 | 2008-4-14 17:25:43 | 显示全部楼层
我就是想问一下,这个问题要完成某个特定的功能吗?
回复

使用道具 举报

千问 | 2008-4-14 17:25:43 | 显示全部楼层
#includeunsigned long fun(unsigned long n) { unsigned long x=0; int t; while(n) { t=n%10; /**********found**********/ if(t%2==0) /**********found**********/ x=__2__+t; /**********found**********/ n=n/10; } return x; } main() { unsigned long n=-1; while(n>99999999||n<0) { printf("Please input(0<n<100000000): "); scanf("%ld",&n); } printf("\nThe result is: %ld\n",fun(n)); }第二个空不知..因为我不知你要干嘛...不过可以猜到一点
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行