Skip to content

Instantly share code, notes, and snippets.

@nofxx
Created October 19, 2011 04:42
Show Gist options
  • Save nofxx/1297487 to your computer and use it in GitHub Desktop.
Save nofxx/1297487 to your computer and use it in GitHub Desktop.
rc1
main()
int x = 1;
float y = 22.5;
char c = 'C';
char[] = "Take this " + c + "!";
printf("x to i: %d\n", x);
printf("Then I said: " + t);
for(int i=0; i<=5; i++) {
printf("Woo");
}
}
include "stdio"
def main
x = 1
y = 22.5
c = "C"
t = "Take this #{c}!"
p "Then I said: #{t}"
p "x to i: %d\n", x
5.times { p "Woo!" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment