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 1

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,

[tex]\tt{product = x * y}[/tex]

Let's implement the same logic in our program.

[tex]\rule{300}{2}[/tex]

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,

[tex]\tt{>>> product = x * y}[/tex]

Here, * operator multiplies two numbers and assigns the result to the product variable.

Finally, product is printed on the screen using print() statement.

If you know the answer add it here!

Can't find the answer?

Log in with Google

or

Forgot your password?

I don't have an account, and I want to Register

Choose a language and a region
How much to ban the user?
1 hour 1 day 100 years