From 0699f7825bc663e3be81522e242ace73209199bf Mon Sep 17 00:00:00 2001 From: smallkun Date: Tue, 25 Mar 2025 09:44:29 +0800 Subject: [PATCH] Auto commit --- 最后一舞/C语言基础进阶合集版编程题.md | 31 +++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/最后一舞/C语言基础进阶合集版编程题.md b/最后一舞/C语言基础进阶合集版编程题.md index 9e13f6f..d2c7f96 100644 --- a/最后一舞/C语言基础进阶合集版编程题.md +++ b/最后一舞/C语言基础进阶合集版编程题.md @@ -52,8 +52,6 @@ int main(){ - - ### 2 数组的批量删 题目:设计程序,删除数组中所有值为x 的元素 @@ -68,6 +66,35 @@ int main(){ 输出样例:1 3 ``` +```c +#include + +int main(){ + int a[100]; + int len, i, j = 0, num; + + scanf("%d", &len); + for(i=0;i