in Education by
d. Consider the following python program, intended to calculate factorials: 3 number = int(input(‘enter number’)) n, result = number, 1 while True or n : result = result * n n = n-1 factorial = result print(‘factorial of’, number ,’is’, factorial) I. What happens when the user enters a value 5. II. How would you fix this program? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
country articles and pizza party

Related questions

0 votes
    write a program in python to enter the mark in 3 subjects and calculate total and assign grade. If total >= 200 ... grade is B' Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    write a program in Python to print the sum of the following series: s=1+x+x^2+x^3+…..+x^n Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
0 votes
    write a program in python to obtain 3 numbers and print their sum. Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    write a Java program for the following : write a program in java to calculate simple interest (SI) for principal ... (T) as 3years Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write a Java program for the following : write a program in java to calculate simple interest (SI) for principal ... (T) as 3years Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Suppose L= [10, [ Kavya , Joshika , Deepa ],3,'Harini'] Consider the above list and answer the ... . computer class 11 python Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    The following are operating system processing program except? A. Control programs B. Utility programs C. Library ... Linkage editor Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    which of the following is a category of system software?a. operating system b. programming language c. utility ... of the above Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... total and average. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Write a program to calculate the distance,speed =120km,time=4hrs Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Q10) Write a python code/program for the following: (1) To Calculate and display selling price of an item by ... cost price and profit. Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Write a c program to find largest and smallest among all elements of 2-d array. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
...