Robotics & Artificial Intelligence
Related Questions
Write Python code to find the sum of the given series:
1 + (1*2) + (1*2*3) + …………… + (1*2*3*……………*n)
Write Python code to find the sum of the given series:
S = 1! + 2! + 3! + 4! + …………… + n!
[Hint: Factorial of 5! = 5*4*3*2*1]
Write a program to input any 20 numbers (including positive and negative). The program displays the sum of all positive numbers and negative numbers separately.
Write a program to enter a number and display the sum of its digits.
Sample Input: 642
Output: 12 (6+4+2 = 12)