mirror of
https://git.fddl.dev/fddl/fddl.git
synced 2024-12-25 13:50:26 +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;
|
|
}
|
|
}
|