347,450 views
24 votes
24 votes
Algorithm to calculate the sum and difference of 15 and 12​

User Ahmed Abdalla
by
2.5k points

1 Answer

10 votes
10 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 Luc Gagan
by
3.0k points