Computer Science, asked by aryankush7, 6 months ago

Write a program to find the factorial of a number using for loop and write same program
using whole loop.​

Answers

Answered by Anonymous
1

\huge\boxed{\mathfrak{\pink{\fcolorbox{yellow}{aqua}{ AnSwer}}}}

Working ⚡☃️:-

  • First 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.

᳐᳐᳐᳐᳐᳐

᳐᳐᳐᳐᳐᳐᳐

 

HOPE THIS HELPS ❤️☺️

BE BRAINLY ⚡☃️

Answered by tanujagautam107
1

Answer:

plz mark me as brainliest

Explanation:

First 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.

Similar questions