题解列表
c语言 ,这样做才简单!!
摘要:解题思路:基础C语言注意事项:无参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) scanf("%d",&a……
不要想太多,这样简单
摘要:解题思路:基础C语言即可注意事项:只用for和if语句参考代码:#include<stdio.h>int main(){ int a[10],i,b; for(i=0;i<9;i++) s……
[编程入门]自定义函数之字符串反转
摘要:解题思路:#include<stdio.h>#include<string.h>int main(){ char a[15]={'0'}; scanf("%s", &a);……
[编程入门]自定义函数之字符串连接
摘要:解题思路:#include<stdio.h>#include<string.h>int main(){ char a[10]={'0'},b[10]={'0'};……
编写题解 1015: [编程入门]求和训练
摘要:```c
#include
#include
#include
#include
int main()
{
double a = 0.0, b = 0.0, c = 0.0;
……
编写题解 1014: [编程入门]阶乘求和
摘要:因为这是阶乘求和,一般的int 类型可能就不够,因此我们利用long long int 类型(不用unsigned long 因为当n为20时,Sn =2561327494111820313)
``……
for嵌套循环打印九九乘法表
摘要:# 打印九九乘法表
用for的嵌套循环
为了符合格式要求,需要设置左对齐,还要调整字段宽度
注意width()方法只影响接下来显示的一个项目,然后将恢复为默认值
###参考代码:
```cp……
1902: 蓝桥杯算法提高VIP-九宫格
摘要: import java.util.*;
public class 九宫格 {
public static void main(String[] args) {
Scanner sc =……