Computer Science, asked by Anamikaas04, 6 months ago

Write a menu driven Python program to compute and display the sum of 'n' numbers. Also compute and display the factorial of a number accepted at runtime.
[[Topic: Python programming conditional looping]]
❌Do not spam❌​

Answers

Answered by Anonymous
0

Answer:

To test the program for a different number, change the value of num.

Here, the number whose factorial is to be found is stored in num, and we check if the number is negative, zero or positive using if...elif...else statement. If the number is positive, we use for loop and range() function to calculate the factorial.

Answered by Renumahala2601
3

Answer:

Write a menu driven Python program to compute and display the sum of 'n' numbers. Also compute and display the factorial of a number accepted at runtime.

[[Topic: Python programming conditional looping]]

❌Do not spam❌

Similar questions