Skip to content

Instantly share code, notes, and snippets.

@cwage
Created June 5, 2013 05:04
Show Gist options
  • Save cwage/5711724 to your computer and use it in GitHub Desktop.
Save cwage/5711724 to your computer and use it in GitHub Desktop.
for (i = 0; i < 6; i++)
{
exponent = 6-i;
printf("2^%i = %i\n", exponent, 2^exponent);
}
results:
2^6 = 4
2^5 = 7
2^4 = 6
2^3 = 1
2^2 = 0
2^1 = 3
... wat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment