摘要: 7-1: #include <stdio.h> #define Maxs 1001 int findmax(int a[], int N); int main() { int count[Maxs] = {0}; int n; scanf("%d", &n); int x; while ((scan 阅读全文
posted @ 2021-12-12 23:29 天狼星017 阅读(40) 评论(1) 推荐(1) 编辑
摘要: 经过了短短几周的学习,我们已经接触了三个循环结构。他们分别是: for: for(i=1;i<=n;i++){ .... 执行语句 .... } while-do: i=1;while(判断){ .... 执行语句 .... } do-while: i=1;do{ .... 执行语句 .... }w 阅读全文
posted @ 2021-10-03 17:01 天狼星017 阅读(88) 评论(0) 推荐(1) 编辑