素数判断--开方小于num 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isPrime(int num) { if (num <= 1) { return 0; } …… 题解列表 2023年07月03日 0 点赞 0 评论 308 浏览 评分:9.9
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int x,a; cin >> x; while(…… 题解列表 2023年07月03日 0 点赞 0 评论 591 浏览 评分:9.9
[编程入门]自定义函数之数字分离(超级简单版只需十一步) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b, c, d, e; printf("请输入一个四位数的数字:"); …… 题解列表 2023年07月03日 0 点赞 0 评论 347 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c,i; scanf("%d %d %d", &a, &b, &c); for (i = 2…… 题解列表 2023年07月04日 0 点赞 0 评论 545 浏览 评分:9.9
蛇形矩阵简单易懂 摘要:解题思路:先理解下标的变换,再根据变换的规律依次将递增的自然数写入数组注意事项:备用一个变量t,避免最后遍历数组的时候,条件被改变参考代码:#include <stdio.h>int main(){ …… 题解列表 2023年07月04日 0 点赞 0 评论 349 浏览 评分:9.9
[递归]母牛的故事(c语言) 摘要:解题思路:首先就先列一些值,便于发现规律,更加直观年12345678牛的数量f[n]12346913191、找规律,有些小伙伴可能已经发现了f[n]=f[n-1]+f[n-3]2、对题目进行分析,根据…… 题解列表 2023年07月04日 0 点赞 0 评论 420 浏览 评分:9.9
[编程入门]利润计算:switch-case实现 摘要:解题思路: 每个区间内的数单独计算利润,最后所有区间的利润相加,记得最终利润。 用switch-case实现: & 题解列表 2023年07月04日 0 点赞 0 评论 955 浏览 评分:9.9
Hello World 代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hell…… 题解列表 2023年07月05日 0 点赞 0 评论 324 浏览 评分:9.9
三角形图案打印 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf(" *\n"); printf(" * *\n"); printf("****…… 题解列表 2023年07月05日 0 点赞 0 评论 934 浏览 评分:9.9
求平方和代码 摘要:解题思路:注意事项:参考代码:1.#include<stdio.h>int main(){ int A,B; scanf("%d %d",&A,&B); printf("%d",A*…… 题解列表 2023年07月05日 0 点赞 0 评论 566 浏览 评分:9.9