print("Sum of Odd Number using for loop ") start = int(input("Enter the starting value : ")) end = int(input("Enter the ending value : ")) result=0 for x in range(start,end): if(x % 2 == 1): result=result+x print("Sum of odd number is ",result)To download raw file Click Here
Sum of Odd Number using for loop Enter the starting value : 1 Enter the ending value : 10 Sum of odd number is 25
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions