# program to demonstrate passing parameters to a subroutine def addNumbers(n,m): total = 0 for count in range(n,m): total = total + count return total #main program result = addNumbers(5,11) print("Sum = ",result)