#include <stdio.h>
int main()
{
int x=5; //x = interest rate(5%)
int y=10000; //y = principal
int n = 0; //n = after years
while (1)
{
n++;
y += y*(x/100);
if(y == 20000)
break;
}
printf("%d years later, double.",n);
return 0;
}
When I run it, nothing happens.
Description Resource Path Location Type cannot open output file mm.exe: Permission denied mm C/C++ Problem
I would appreciate it if you let me know what went wrong.