Compare commits

..

2 Commits

Author SHA1 Message Date
ac73348367 팩토리얼 2025-08-31 00:47:55 +09:00
41b8335927 헬로월드 2025-08-31 00:47:43 +09:00
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1 @@
print("Hello World")

View File

@@ -0,0 +1,11 @@
function factorial(n)
if n == 0 then
return 1
else
return n * factorial(n - 1)
end
end
print("Enter a number:")
a = io.read("*number")
print(factorial(a))