Skip to content

Commit 39ed3c5

Browse files
authored
Create 5rangeCase
1 parent 372e828 commit 39ed3c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

5rangeCase

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
定义一个数字变量num,内容随意
3+
并使用range()语句,获取从1到num的序列,使用for循环遍历它
4+
在遍历过程中,统计有多少偶数出现
5+
提示:
6+
1.可以使用:range(1,num)得到
7+
2.偶数通过if来判断,判断数字除以2余数是否为0即可
8+
"""

0 commit comments

Comments
 (0)