用c语言实现1-100的列举
下面是使用C语言实现1-100的列举的代码:
#include <stdio.h>
int main() { int i; for (i = 1; i <= 100; i++) { printf("%d\n", i); } return 0; }
运行该程序将在屏幕上输出1到100的数字。
原文地址: https://www.cveoy.top/t/topic/cLGu 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
下面是使用C语言实现1-100的列举的代码:
#include <stdio.h>
int main() { int i; for (i = 1; i <= 100; i++) { printf("%d\n", i); } return 0; }
运行该程序将在屏幕上输出1到100的数字。
原文地址: https://www.cveoy.top/t/topic/cLGu 著作权归作者所有。请勿转载和采集!