shebangs
This commit is contained in:
parent
eec2c5ea19
commit
590704c425
5 changed files with 10 additions and 0 deletions
2
src/fb.js
Normal file → Executable file
2
src/fb.js
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
for (let i = 1; i <= 100; i++) {
|
||||
if (i % 15 == 0) {
|
||||
console.log("FizzBuzz");
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env lua
|
||||
|
||||
for i = 1, 100 do
|
||||
if i % 15 == 0 then
|
||||
print("FizzBuzz")
|
||||
|
|
2
src/fb.php
Normal file → Executable file
2
src/fb.php
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env php
|
||||
|
||||
<?php
|
||||
for ($i=1; $i <=100 ; $i++) {
|
||||
if ($i % 15 == 0) {
|
||||
|
|
2
src/fb.py
Normal file → Executable file
2
src/fb.py
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
for i in range(1,101):
|
||||
if i % 15 == 0 :
|
||||
print("FizzBuzz")
|
||||
|
|
2
src/fb.sh
Normal file → Executable file
2
src/fb.sh
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
for i in $(seq 1 100); do
|
||||
if [[ $(( $i % 15 )) == 0 ]]; then
|
||||
echo FizzBuzz
|
||||
|
|
Loading…
Add table
Reference in a new issue