Write programs to calculate the factorial of a number using while loop.
Answers
Answered by
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
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
Math,
3 months ago
Math,
3 months ago
India Languages,
7 months ago
English,
7 months ago
Chemistry,
10 months ago