Factorial of a number November 19, 2019 Q:1 Write a program to Calculate the factorial of the inputted numbers. Program: 1: number=int(input("Enter the number factorial number")) fact=1 i=1 while i<=number: fact=fact*i i=i+1 print("The factorial of ",number," is = ",fact) Output: Press F5 or Run module: Share Get link Facebook X Pinterest Email Other Apps Labels Practical File Program Share Get link Facebook X Pinterest Email Other Apps Comments
HISTORY OF THE SOFTWARE August 31, 2018 Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands as a successor of a language called ABC. Read more
Write a functions to calculate trignometry values March 01, 2020 # Function for calculating trignometry values Read more
Write a program to remove all the lines that contain the character ‘a’ in a file and write it to another file. February 08, 2020 Read more
Comments
Post a Comment