Skip to content

Day 4 while函数去偶数行 #5380

@andrew2017wang

Description

@andrew2017wang

求教同学和教练,九九乘法表去偶数行,我用了一个比较笨的方法,用while X%2==0来判断偶数行,然后terminate后续的函数,但结果却依然是完整的乘法表。把break 替换为continue结果只出现1*1=1。到底哪里出错了呢?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions