Answer:
IN PYTHON ::
x=int(input('Enter length:'))
y=int(input('Enter width:'))
print('Area of the rectangle is', x*y,'squared units')
I hope it will be useful.
Answer:
I can't read that pls reformat, or take picture.
Explanation:
Answer:
down below
Explanation:
score = input() # gets student's score input
max = input() # gets max number
percent = (score/max)*100 # multiply by a hundred to get percentage
if percent > 52: # checks if percent is greater than 52
print("well dont you have at least a grade 5")
else # if percent is less than or equal to 52 it will print this instead
print("Unlucky, you need to revise more for the next test.")
THIS PART IS NOT CODE:
make sure you indent/tab the print statements or else you'll get an error
Answer:
n! = n*(n-1)*(n-2)*(n-3)* ... *2*1
Explanation:
The factorial operator is simply a mathematical expression of the product of a stated integer and all integers below that number down to 1. Consider these following examples:
4! = 4 * 3 * 2 * 1
4! = 12 * 2 * 1
4! = 24
6! = 6 * 5 * 4 * 3 * 2 * 1
6! = 30 * 4 * 3 * 2 * 1
6! = 120 * 3 * 2 * 1
6! = 360 * 2 * 1
6! = 720
So, the factorial of n would follow the same as such:
n! = n * (n-1) * (n-2) * ... * 2 * 1
Cheers.
The program that ask the user to type there first name and then print out how many letters that is in there name is as follows:
x = input("what is your first name: ")
y = len(x)
print(f"There are {y} letters in your name")
<h3>Code explanation;</h3>
The code is written in python.
- Firstly, we store the users name in the variable x.
- Then, we find the length of the users inputted name and store it in a variable y.
- Finally, we print the length of the users name using the print function.
learn more on python here: brainly.com/question/26738945