Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 4 while函数去偶数行 #5380

Open
andrew2017wang opened this issue Aug 12, 2019 · 2 comments
Open

Day 4 while函数去偶数行 #5380

andrew2017wang opened this issue Aug 12, 2019 · 2 comments

Comments

@andrew2017wang
Copy link
Contributor

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

@CrossroadW
Copy link

[莫名搜到这个repo,非学员],我想说,大哥你while 循环内部break,光退出了while自己,你在break什么?

@fangchengyue
Copy link
Contributor

fangchengyue commented Jul 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants