Ok so I am having trouble with my initial declaration of my factorial statement for my final output can anyone help me out? there are a couple other things but i think through fiddling i am able to figure it out.
Line 19 and 61 remove that "long" you will be redeclaring your function. You dont need line 19 by the way.
You could have returned the value you obtained from your factorial function, do it line 16. You said that double count and double y;// is the number of steps allowed well double is a floating point type you know you can't have 0.5 trials I would advice you use int or size types .