1. Write a program in python to find the product of two numbers x and y, where x- 150 and y-200. I want written coding in python programming.
Answers
Answered by
10
Product of two Numbers - Python
In this program, we will multiply two numbers using the * operator. Then we will print the result on the screen.
This is similar to what we do in mathematics where,
Let's implement the same logic in our program.
The Program
x = 150
y = 200
product = x * y
print("The product of the given numbers is: ", product)
Explanation
In the above program, we have stored 150 and 200 in variables x and y respectively.
Notice the statement,
Here, * operator multiplies two numbers and assigns the result to the product variable.
Finally, product is printed on the screen using print() statement.
Similar questions