Computer Science, asked by Anonymous, 1 year ago

Code for the following in Python:

Attachments:

Answers

Answered by AbhijithPrakash
5

Here is the Python script for your question:

_________________________________________________

# Let's take x and y as the numbers

x = 150000

y = 100

#Creator AbhijithPrakash

print ("Product of",x,"and",y,"is",x*y)  

print ("Sum of",x,"and",y,"is",x+y)

print ("Difference of",x,"and",y,"is",x-y)

print ("Quotient of",x,"and",y,"is",x/y)

_________________________________________________

Thanks

________________________________________________

Attachments:

Anonymous: Thank You
AbhijithPrakash: WELCOME :)
fiercespartan: Do not forget the parenthesis ()
Answered by siddhartharao77
1

Sample Python Code:

num = 150000

num1 = 100

add = num + num1;

print('Sum of {0} and {1} is {2}' .format(num,num1,add))

prod = num * num1;

print('Product of {0} and {1} is {2}' .format(num,num1,prod))

Diff = num - num1;

print('Difference of {0} and {1} is {2}' .format(num,num1,Diff))

Quot = num/num1;

print('Quotient of {0} and {1} is {2}' .format(num,num1,Quot))

Output:

Sum of 150000 and 100 is 150100

Product of 150000 and 100 is 15000000

Difference of 150000 and 100 is 149900

Quotient of 150000 and 100 is 1500.

Hope it helps!

Attachments:
Similar questions