19 lines
278 B
Plaintext
19 lines
278 B
Plaintext
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;
|
|
}
|
|
}
|