lib/HelloWorldFizzBuzz/sqlite.rb in HelloWorldFizzBuzz-0.3.0 vs lib/HelloWorldFizzBuzz/sqlite.rb in HelloWorldFizzBuzz-0.4.0
- old
+ new
@@ -44,10 +44,24 @@
Ada.Text_IO.Put ( ' ' & FB(I) );
Ada.Text_IO.New_Line;
end loop;
end FizzBuzz;")
### B
-
+@posts.insert(language: 'basic',
+ helloworld: "
+10 PRINT 'Hello World!'
+20 GOTO 10
+",
+ fizzbuzz: "
+10 DEF FN M(N) = ((A / N) - INT (A / N)) * N
+20 FOR A = 1 TO 100
+30 LET O$ = ""
+40 IF FN M(3) = 0 THEN O$ = 'FIZZ'
+50 IF FN M(5) = 0 THEN O$ = O$ + 'BUZZ'
+60 IF O$ = "" THEN O$ = STR$ (A)
+70 PRINT O$
+80 NEXT A
+"
### C
### D
@posts.insert(language: 'dart',
helloworld: "void main() {