Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 206 Bytes
#include <stdio.h>
int
main(int argc, char *argv[]) {
int i;
double base = 100, rate = 1.01;
for(i=0; i<5000; i++){
base *= rate;
}
printf("Base has increased by %f\n", base - 100);
return 0;
}