Originally Posted by Jov4nTh3Yu9o
I can't seem to get my factorial program working properly. For any input value I get 1!=1 back out. Can anyone help me out?
I don't even understand what you're trying to accomplish with that code but your for loop initialises the iterating variable i = 1 and then ends while i <= 1, therefore, only undergoing one iteration of the code in the loop. So, an output of "1 != 1" seems about right.
What are you trying to do?
Also, it would be better if you posted your code in code tags, instead of posting a screenshot.