-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
220 changed files
with
874 additions
and
1,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
let a = 10; | ||
a += 2; | ||
print(a); | ||
printLn(a); | ||
|
||
a = 10; | ||
a -= 2; | ||
print(a); | ||
printLn(a); | ||
|
||
a = 10; | ||
a *= 2; | ||
print(a); | ||
printLn(a); | ||
|
||
a = 10; | ||
a /= 2; | ||
print(a); | ||
printLn(a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ function draw() | |
output += "\n"; | ||
i++; | ||
} | ||
print(output); | ||
printLn(output); | ||
} | ||
|
||
setupGrid(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
let a = 10; | ||
a++; | ||
print(a); | ||
printLn(a); | ||
a--; | ||
print(a); | ||
printLn(a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ function factailrec(acc, n) | |
return factailrec(n * acc, n - 1); | ||
} | ||
|
||
print(fac(14)); | ||
printLn(fac(14)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,6 @@ while (c < n) | |
first = second; | ||
second = next; | ||
} | ||
print(next); | ||
printLn(next); | ||
c = c + 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
print(asc("a")); | ||
print(cha(67)); | ||
print(toUpper("hello world!")); | ||
print(toLower("HELLO WORLD!")); | ||
print(inStr("hello world", "world")); | ||
print(inStrRev("hello world", "world")); | ||
print(strRev("!dlroW olleH")); | ||
print(len("Hello World!")); | ||
print(space(10)); | ||
print(strCmp("Hello World","Hello Earth")); | ||
print(trim(" Hello World! ")); | ||
print(lTrim(" Hello World!")); | ||
print(rTrim("Hello World! ")); | ||
print(left("Hello World!",5)); | ||
print(mid("Hello World!",2,5)); | ||
print(right("Hello World!",4)); | ||
printLn(asc("a")); | ||
printLn(cha(67)); | ||
printLn(toUpper("hello world!")); | ||
printLn(toLower("HELLO WORLD!")); | ||
printLn(inStr("hello world", "world")); | ||
printLn(inStrRev("hello world", "world")); | ||
printLn(strRev("!dlroW olleH")); | ||
printLn(len("Hello World!")); | ||
printLn(space(10)); | ||
printLn(strCmp("Hello World","Hello Earth")); | ||
printLn(trim(" Hello World! ")); | ||
printLn(lTrim(" Hello World!")); | ||
printLn(rTrim("Hello World! ")); | ||
printLn(left("Hello World!",5)); | ||
printLn(mid("Hello World!",2,5)); | ||
printLn(right("Hello World!",4)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
print(month(1485199747)); | ||
print(monthName(month(1485199747))); | ||
print(weekday(1485199747)); | ||
print(weekdayName(1485199747)); | ||
print(year(1440544844)); | ||
printLn(month(1485199747)); | ||
printLn(monthName(month(1485199747))); | ||
printLn(weekday(1485199747)); | ||
printLn(weekdayName(1485199747)); | ||
printLn(year(1440544844)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
print(abs(1)); | ||
print(acos(1)); | ||
print(asin(1)); | ||
print(atan(1)); | ||
print(atan2(1,1)); | ||
print(ceil(1)); | ||
print(cos(1)); | ||
print(exp(1)); | ||
print(sin(1)); | ||
print(sqrt(2)); | ||
print(tan(1)); | ||
print(pow(2,2)); | ||
print(sqrt(2)); | ||
print(min(1,2,3)); | ||
print(max(1,2,3)); | ||
printLn(abs(1)); | ||
printLn(acos(1)); | ||
printLn(asin(1)); | ||
printLn(atan(1)); | ||
printLn(atan2(1,1)); | ||
printLn(ceil(1)); | ||
printLn(cos(1)); | ||
printLn(exp(1)); | ||
printLn(sin(1)); | ||
printLn(sqrt(2)); | ||
printLn(tan(1)); | ||
printLn(pow(2,2)); | ||
printLn(sqrt(2)); | ||
printLn(min(1,2,3)); | ||
printLn(max(1,2,3)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ function gcd(a, b) | |
return a; | ||
} | ||
|
||
print(gcd(20, 4)); | ||
printLn(gcd(20, 4)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
let c= 1+1; | ||
if (c<1) | ||
{ | ||
print("If"); | ||
printLn("If"); | ||
} | ||
else | ||
{ | ||
print("Else"); | ||
printLn("Else"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
print("Hello World!"); | ||
printLn("Hello World!"); | ||
function hello() | ||
{ | ||
return "Hello!"; | ||
} | ||
print(number); | ||
printLn(number); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
print(1&&1); | ||
print(1||0); | ||
print(1&&(1||0)); | ||
printLn(1&&1); | ||
printLn(1||0); | ||
printLn(1&&(1||0)); | ||
|
||
print("OR"); | ||
print(0||0); | ||
print(0||1); | ||
print(1||0); | ||
print(1||1); | ||
printLn("OR"); | ||
printLn(0||0); | ||
printLn(0||1); | ||
printLn(1||0); | ||
printLn(1||1); | ||
|
||
print("AND"); | ||
print(0&&0); | ||
print(0&&1); | ||
print(1&&0); | ||
print(1&&1); | ||
printLn("AND"); | ||
printLn(0&&0); | ||
printLn(0&&1); | ||
printLn(1&&0); | ||
printLn(1&&1); | ||
|
||
print("AND/OR"); | ||
print(0||(1&&1)); | ||
print(1||(0&&0)); | ||
print(0&&(0||1)); | ||
print(1&&(1||0)); | ||
printLn("AND/OR"); | ||
printLn(0||(1&&1)); | ||
printLn(1||(0&&0)); | ||
printLn(0&&(0||1)); | ||
printLn(1&&(1||0)); | ||
|
||
print("LOGIC/MATH"); | ||
print(0+1||0); | ||
print(0); | ||
print(1); | ||
printLn("LOGIC/MATH"); | ||
printLn(0+1||0); | ||
printLn(0); | ||
printLn(1); |
Oops, something went wrong.