mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
More programs for test.
This commit is contained in:
19
resources/examples/hello_world_many.c3
Normal file
19
resources/examples/hello_world_many.c3
Normal file
@@ -0,0 +1,19 @@
|
||||
import std::io;
|
||||
|
||||
fn void main()
|
||||
{
|
||||
char[][] greetings = {
|
||||
"Hello, world!",
|
||||
"¡Hola Mundo!",
|
||||
"Γειά σου Κόσμε!",
|
||||
"Привет, мир!",
|
||||
"こんにちは世界!",
|
||||
"你好世界!",
|
||||
"नमस्ते दुनिया!",
|
||||
"👋🌎!"
|
||||
};
|
||||
foreach (greeting : greetings)
|
||||
{
|
||||
io::println(greeting);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user