与7无关的数(自定义函数) 参考代码:```c#includeintm(inta)//这个函数是判断它的十进制表示法中某一位上的数字是否为7,感觉放在主函数太挤了,干脆拿出来了{intb=a,k=1;//用k来判断while(b){if(b%10==7){k--;}b=b/10;}returnk;//若是, 题解列表 2023年09月13日 0 点赞 0 评论 538 浏览 评分:0.0
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h> int main(){ int n,num=0 ; int i; int sum=0; int …… 题解列表 2023年02月13日 0 点赞 0 评论 598 浏览 评分:0.0
(c语言)详细解读 摘要:解题思路:注意事项:参考代码: #include"stdio.h"void main(){ int s7[100]={}; //不是与7有关的记录在…… 题解列表 2023年01月03日 0 点赞 0 评论 548 浏览 评分:0.0
编写题解 2828: 与7无关的数 摘要:解题思路:注意事项:参考代码://编写题解 2828: 与7无关的数 //一个正整数,如果它能被7整除,或者它的十进制表示法中某一位上的数字为7,则称其为与7相关的数。现求所有小于等于n(n < 1…… 题解列表 2023年01月01日 0 点赞 0 评论 640 浏览 评分:0.0