Computer Science, asked by sofia566, 5 months ago

Q. Write a program in Python to find the Subtraction of two numbers x and y,

where x=145 and y=10.

Answers

Answered by ғɪɴɴвαłσℜ
2

PYTHON prograммe :-

Def substraction (х,y) :

#{Function for substraction

sᴜʙ = x - y

// ʀᴇᴛᴜʀɴ sᴜм

ɴᴜᴍ1 = ғʟᴏᴀᴛ(ɪɴᴘᴜᴛ("145: "));

#ɪɴᴘᴜᴛ ғʀᴏᴍ ᴜsᴇʀ ᴛᴏ ɴᴜᴍ1

ɴᴜᴍ2= ғʟᴏᴀᴛ(ɪɴᴘᴜᴛ("10: "));

#ɪɴᴘᴜᴛ ғʀᴏᴍ ᴜsᴇʀ ᴛᴏ ɴᴜᴍ2

ᴘʀɪɴᴛ("sᴜᴍ ɪs: ",sᴜʙᴛʀᴀᴄᴛɪᴏɴ(145,10))*

#Function }}

________________________________

Similar questions