Computer Science, asked by karthikr67, 7 months ago

Write programs to calculate the factorial of a number using while loop.

Answers

Answered by tejaswi91
3

Answer:

  •  the computer reads the number to find the factorial of the number from the user.

 the computer reads the number to find the factorial of the number from the user.Then using while loop the value of 'i' is multiplied with the value of 'f'.

 the computer reads the number to find the factorial of the number from the user.Then using while loop the value of 'i' is multiplied with the value of 'f'.The loop continues till the value of 'i' is less than or equal to 'n'.

  •  the computer reads the number to find the factorial of the number from the user.Then using while loop the value of 'i' is multiplied with the value of 'f'.The loop continues till the value of 'i' is less than or equal to 'n'.Finally the factorial value of the given number is printed.
Answered by harishvenkat884
2

Answer:

1)First the computer reads the number to find the factorial of the number from the user.

2)Then using while loop the value of 'i' is multiplied with the value of 'f'.

3)The loop continues till the value of 'i' is less than or equal to 'n'.

4)Finally the factorial value of the given number is printed.

please like me and vote me

Similar questions