Computer Science, asked by officialsano11, 19 days ago

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 Anonymous
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,

\tt{product = x * y}

Let's implement the same logic in our program.

\rule{300}{2}

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,

\tt{>>> product = x * y}

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