Question: please show me how to Do all these with for loops 1-Write a program that asks the user to enter two values: x and y.

please show me how to Do all these with for loops

1-Write a program that asks the user to enter two values: x and y. You must then compute the product of all integers from x to y. For example, if the user has entered 10 and 7, then the output should be 5040.

2-Write a program that simulates the reading password process you go through while logging into a computer account. The program will ask for a password, compare the value against two possible passwords (that are built-in), and print "Welcome" if the password provided by the user is valid. Otherwise, ask the user to enter the password again. (This process repeats.)

3-The factorial of an integer is the product of all positive integers that are less than or equal to it. For example, 4 factorial is 2 * 3 * 4 = 24. Write a program that asks the user to enter a value, n, and then prints n factorial.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!