Write a program to find the product of two numbers x and y, where x = 150 and y=200 in python
Answers
Answered by
1
Answer:
I think it will be 360 for x
Answered by
0
a=input("enter a value")
print(type(a))
#output type of a is string by default in python
a=int(a)
#convert from string to integer by using inbuilt int()
print(type(a)) #output type of a is integer
Output- <class 'str'>
<class 'int'>
Program :
a=int(input("enter first number : "))
b=int(input("enter second number : "))
print("sum of",a, "and",b,"is",a+b)
Output :
enter first number : 4
enter second number : 6
sum of 4 and 6 is 10
Similar questions