Code logic is correct but not giving desired output its for factorial number
instead of f=f * a and a=a+1, it should be a=a * i; and loop condition should be i<=f
Hey, i guess you have shared the wrong link, it doesn’t have the factorial code in it.
instead of f=f * a and a=a+1, it should be a=a * i; and loop condition should be i<=f
Hey, i guess you have shared the wrong link, it doesn’t have the factorial code in it.