This file contains hidden or 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
function isEven(x: qword): boolean; | |
begin | |
if (x mod 2) = 0 then | |
isEven := true | |
else | |
isEven := false; | |
end; | |
procedure checkEven(i: qword); | |
begin |
This file contains hidden or 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
//My solution to a sample problem from Eloquent Javascript by Marijn Haverbeke | |
var size = 8; | |
var board = " "; | |
for (var i = 0; i < size; i++) { | |
for (var j = 0; j < size; j++) { | |
if ((i + j) % 2 === 0) { | |
board += " "; |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main(int argc, const char * argv[]) { | |
int numLines; | |
int spaces; | |
int currentLine = 1; | |