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

無限ループ用 loop #11

Open
taisukef opened this issue Dec 24, 2024 · 1 comment
Open

無限ループ用 loop #11

taisukef opened this issue Dec 24, 2024 · 1 comment

Comments

@taisukef
Copy link
Member

無限ループを

while 1 == 1 {
  print input() * 2
}

などと記述する代わりに

loop {
  print input() * 2
}

と記述できるとわかりやすいかも

ループを抜けるための命令breakも必要
#8

@taisukef
Copy link
Member Author

taisukef commented Jan 5, 2025

break は実装済み
while 1 で代用できるので、必要ないかも?

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

1 participant