From b160f916192d14ad8d7526fcc761c1d992f28789 Mon Sep 17 00:00:00 2001 From: 201816040116 <56645578+201816040116@users.noreply.github.com> Date: Sun, 27 Oct 2019 01:15:46 +0800 Subject: [PATCH] Create Ex07_14.cpp This is my assignment_02 Student ID:201816040116 --- 201816040116/Ex07_14.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 201816040116/Ex07_14.cpp diff --git a/201816040116/Ex07_14.cpp b/201816040116/Ex07_14.cpp new file mode 100644 index 0000000..7656963 --- /dev/null +++ b/201816040116/Ex07_14.cpp @@ -0,0 +1,32 @@ +#include +#include +#include +using namespace std; +int main() +{ + vectorc; //创建数组 + int a,d=0,i,j,k,b=0; + for(j=1;j<=20;j++) + { + cin>>a; //给a赋值 + if(a>=10&&a<=100) //判定是否为有效数字 + { + for(k=0;k