Find the sum of odd number from in given rang in python
View All Python Programs Source Code st=int(input(“Enter starting number :”)) end=int(input(“Enter end number :”)) sum=0 for n in range(st,end): if n%2==1: sum=sum+n print(“Sum of number is : “,sum) Output Enter starting number :5 Enter end number :20 Sum of number is : 96 View All Python Programs
Find the sum of odd number from in given rang in python Read More »