Skip to content

Instantly share code, notes, and snippets.

@mertyildiran
Created March 10, 2015 17:44
Show Gist options
  • Save mertyildiran/e3919dfac7b46bd8163d to your computer and use it in GitHub Desktop.
Save mertyildiran/e3919dfac7b46bd8163d to your computer and use it in GitHub Desktop.
Ismail Gist - 1
#include <stdio.h>
#include <math.h>
int main(void) {
int result, n;
n = 0;
while (++n < 17) {
printf("%d\t", n);
result = pow(2,n);
printf("%d\n", result);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment