题解列表

筛选

循环嵌套-小九九

摘要:解题思路:注意事项:参考代码:#include <stdio.h>/*小九九*/int  main(){     for(int i=1;i<=9;i++){         for(int j=1……

2786: 判断能否被3、5、7整除(c语言解法)

摘要:解题思路:用if - else if - else 来写,括号里面配合&&和||来增加条件注意事项:只有if和else if后面可以加()写条件,else的后面不能加()写条件参考代码:#includ……

1039题 : 宏定义之闰年判断

#自己写代码```c#include#include#defineLEAP_YEAR(y);intmain(){return0;}```#难点分析主要是不会判断闰年,不知道判断闰年的逻辑是啥#参考代码```c#include#defineLEAP_YEAR(y)(y%4==0&&y%100!=0||y

1037题: [宏定义的练习

摘要:# 自己写代码 ```c #include #include #define qiuyu(a,b) t=a/b; int main() { int a,b,t; scanf("……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str1[101], str2[101];    scanf……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[1000],m,i; while (scanf("%d", &n) == 1 && n != 0……