题解列表

筛选

快点开吧! (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,a,M; int sum=0; scanf("%d",&N);    while(N--)    {……

C二级辅导-分段函数 (C语言代码)

摘要:解题思路:注意事项:参考代码:/*有一个函数如下,写一程序,输入x,输出y值。 x(x<1)y= 2x-1(1<=x<10) 3x-11(x>=10)保留两位小数*/#include <stdio.h……

C二级辅导-进制转换 (C语言代码)

摘要:解题思路:注意事项:参考代码:/*编程,输入一个10进制正整数,然后输出它所对应的八进制数*/#include <stdio.h>int main(){ int a; scanf("%d",&a); ……

遍历(C语言代码)

摘要:解题思路:最重要的是要能够写出循环体,并且需要注意的是,科学记数法和保留最后两位小数,要使用%.2e需要写出遍历注意事项:参考代码:#include<stdio.h>int main(){    in……