11.7k views
25 votes
Algorithm to calculate the sum and difference of 15 and 12​

1 Answer

6 votes
If you’re using python

X = 15
Y= 12

Def sum_dif_num(X,Y):
Sum = X+Y
Dif = abs(X-Y)
Print(Sum)
Print(Dif)
User Mrdaliri
by
5.4k points