We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e1892 commit 8424cb7Copy full SHA for 8424cb7
mojo/clockhands.mojo
@@ -0,0 +1,13 @@
1
+def pad(n) -> String:
2
+ return ("0{}" if n < 10 else "{}").format(n)
3
+
4
+def main():
5
+ for i in range(11):
6
+ t = (43200 * i + 21600) // 11
7
+ h = t // 3600
8
+ m = t // 60 % 60
9
+ s = t % 60
10
+ print("{}:{}:{}".format(pad(h or 12), pad(m), pad(s)))
11
12
13
+https://gist.github.com/modularbot/cc4f5e8c5d6e2789a5b9b0328b2174bd
mojo/hello.mojo
@@ -1 +1,2 @@
-print("Hello, world")
+ print("Hello, world")
0 commit comments