📄 13-7-1.c
字号:
#include <stdio.h> //头文件
void main() //主函数
{
int i=0,total=0;
loop: //语句标号
total = total +i; //执行运算
i++;
if(i<=100) //如果满足条件则转向loop处
goto loop;
printf("1+2+……+100=%d\n", total); //输出结果
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -