题解列表

筛选

矩阵转置 (C语言代码)

摘要:#include <stdio.h>int main(){     int i,j,k,N,s1[100][100],s2[100][100];     scanf("%d",&N);     for……

生日日数 (C语言代码)

摘要:#include <stdio.h>struct date{          int year,month,day;};int main(){  int i,n,leap;  int s[2][13……

C语言程序设计教程(第三版)课后习题5.7 (C语言代码)

解题思路:1.利用do循环求出输入的整数的位数;2.代表输入数和其位数的值分别赋值两次(n,N;num,x),因为赋值以后在运算中其值会发生变化,所以要先存起来,方便最后输出;3.用头文件math.h,可以用指数函数,方便取不确定的商和模;4.由低位到高位输出用for循环,