x = 5
str = "hello"
b = true
function add(x, y) {
return x + y
}
function print(str) {
printf("%s\n", str)
}
while (x < 10) {
x = x + 1
}
for (i = 0; i < 10; i++) {
print(i)
}
if (x < 5) {
print("x is less than 5")
} else {
print("x is greater than or equal to 5")
}
f = fopen("file.txt", "r")
line = fgets(f)
fclose(f)
f = fopen("file.txt", "w")
fprintf(f, "hello\n")
fclose(f)