大家帮帮忙,明天下午就要用了!!!!(就简单几道题)
大家帮帮忙,明天下午就要用了!!!! 1. 编写一个函数fun,然后设计主函数调用函数fun。函数fun的功能是:计算正整数num的各位上的数字之积。例如,若输入:252,则输出应该是:20。若输入:202,则输出应该是:0。
2. 编写一个函数fun,然后设计主函数调用函数fun。函数fun的功能是:统计不超过一个整数m(包括m且m33)的素数个数(不包括1和2)。 3. 编写函数int fun (int lim, int aa[MAX] ),该函数的功能是求出小于lim的所有素数并放在aa数组中,该函数返回所求出素数的个数。然后编写主函数调用它。

