题解列表

筛选

C二级辅导-温度转换 (C语言代码)

摘要:解题思路:注意事项:特别注意5.0/9.0分子分母两项必须保证至少有一项为小数,因为如果写成5/9,编译器会把结果默认为整型0而不是一个浮点型数参考代码:#include<stdio.h>int ma……

内码对称 位运算

摘要:参考代码:#include <stdio.h> #include <math.h> int main() {     long long n,tmp,tmp1;     int cnt=0,……

C二级辅导-求偶数和 (C语言代码)

摘要:解题思路:注意事项:参考代码:/*编制程序,输入n个整数(n从键盘输入,n>0),输出它们的偶数和。*/#include<stdio.h>int main(){    int n, sum = 0, ……

C二级辅导-同因查找 (C语言代码)

摘要:解题思路:注意事项:参考代码:/*求出10至1000之内能同时被2、3、7整除的数,并输出。每行一个。*/#include<stdio.h>int main(){    int i, j;    fo……