mirror of
https://git.fddl.dev/fddl/fddl.git
synced 2024-12-25 05:40:25 +00:00
18 lines
278 B
Text
18 lines
278 B
Text
func main() {
|
|
// print statement
|
|
print("hello, world in fddl");
|
|
|
|
// variable declaration
|
|
let y = 5;
|
|
|
|
// if statement
|
|
if (x > 10) {
|
|
print("x is greater than 10");
|
|
}
|
|
|
|
// while loop
|
|
while (x < 100) {
|
|
print(x);
|
|
let x = x + 1;
|
|
}
|
|
}
|