You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to remove semicolon from the line fact = fact * i;
Final Code:
n = int(input()) #input() function takes input as string type#int() converts it to integer type
fact = 1
i = 1
while i <= n:
`fact = fact * i i = i + 1print(fact)