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 <stdio.h> | |
#include <string.h> | |
void stdinputs(char *strbuff, int len) | |
{ | |
char *usr; | |
scanf("%ms", &usr); | |
strncpy(strbuff, usr, len); | |
} |
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
calc_fibonacci = (count) -> | |
ptr = 1 | |
last = 1 | |
for _ in [1..count] | |
newv = ptr + last | |
last = ptr | |
ptr = newv | |
ptr | |
console.log calc_fibonacci 2 |
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
original: | |
a2 91 02 94 a0 00 00 | |
mod: | |
4c 01 00 94 a0 00 00 |
OlderNewer