Don't worry, it happens to all of us. :)
Type: Posts; User: Brt93yoda
Don't worry, it happens to all of us. :)
Next time surround your code in tags. The reason your code is running twice is because of these two lines:
int steps=simulation(n);
simulation(n); //Remove this line
Here is the finished...