Skip to content

Conversation

@ClearZer0
Copy link
Contributor

No description provided.

@ClearZer0 ClearZer0 force-pushed the loenn-stuff branch 5 times, most recently from 54d3357 to 74a14d3 Compare January 17, 2025 06:08
Copy link
Owner

@Saplonily Saplonily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢 uwu

@ClearZer0 ClearZer0 changed the title Loenn 节 Lua 节 Jan 21, 2025
Copy link
Owner

@Saplonily Saplonily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UwU


其对应的 `C#` 代码如下:
```cs
double safeDivide(double a, double b)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
double safeDivide(double a, double b)
double SafeDivide(double a, double b)

print("num is between 5 and 15") -- 输出 num is between 5 and 15
end
local function divide(a, b)
return b ~= 0 and a/b or error("division by zero")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return b ~= 0 and a/b or error("division by zero")
return b ~= 0 and a/b or error("divide by zero")

@ClearZer0 ClearZer0 closed this by deleting the head repository Oct 26, 2025
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

Successfully merging this pull request may close these issues.

2 participants