From 19719f9ba95f35de20bb08d4313b68a1f5e75173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=9C=E6=AC=A2=E5=81=9A=E7=99=BD=E6=97=A5=E6=A2=A6?= <760721316@qq.com> Date: Sat, 4 Nov 2023 07:45:36 +0000 Subject: [PATCH] =?UTF-8?q?add=202109020142/chapter1/=E5=AE=9E=E9=AA=8C1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 喜欢做白日梦 <760721316@qq.com> --- "2109020142/chapter1/\345\256\236\351\252\2141" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "2109020142/chapter1/\345\256\236\351\252\2141" diff --git "a/2109020142/chapter1/\345\256\236\351\252\2141" "b/2109020142/chapter1/\345\256\236\351\252\2141" new file mode 100644 index 00000000..0cfc02c5 --- /dev/null +++ "b/2109020142/chapter1/\345\256\236\351\252\2141" @@ -0,0 +1,12 @@ +#include +int main() +{ + int i,n,sum; + scanf("%d",&n); + for(i=1;i<=n;i++) + { + sum=sum+i; + } + printf("sum=%d",sum); + return 0; +} \ No newline at end of file -- Gitee