2021年3月5日
摘要: 当输入一个整数时,打印的图形如下: 1 2 3 4 5 6 7 8 9 10 ...... #include<stdio.h> #include<stdlib.h> int main() { int a=1, b,n,c=1; scanf("%d", &n); while (a <= n) { b 阅读全文
posted @ 2021-03-05 14:16 ScottJS 阅读(817) 评论(0) 推荐(0)
摘要: 这是一个非常简单的c程序,但是需要注意的是,当用Sleep()语句的时候,再代码最开始必须加上#include<windows.h>,此方法只在windows系统下有效 #include<stdio.h> #include<stdlib.h> #include<Windows.h> int main 阅读全文
posted @ 2021-03-05 08:39 ScottJS 阅读(2367) 评论(0) 推荐(0)