Computer Science, asked by BullsEye1888, 3 days ago

Write a function that takes two numbers and prints their product

Answers

Answered by AmAnushka2
0

Answer:

Program or Function Used :- Python

______________________

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