Created
January 31, 2020 18:24
-
-
Save bradley-evans/26158cb0cf7a731bcf7e214a1749fc3a to your computer and use it in GitHub Desktop.
This file contains 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> | |
int loop(int n, int a) { | |
int b = 0; | |
for(int i=0; i<n; i++) { | |
b = a + b; | |
} | |
return b; | |
} | |
int main() { | |
int a = 1; | |
int n = 200; | |
// TODO: initialize counters here | |
loop(n, a); | |
// TODO: read counters here | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment