write a python programm that read 5 number and sum of all odd value between them

 #write a python programm that read 5 number and sum of all odd

#value between them
i=0
sum=0
while i<5:
    num=int(input("Enter the number"))
    i+=1
    if num%2!=0:
        sum=sum+num
       
print("sum of odd value is:",sum)

Comments

Popular posts from this blog

Write a python script to display the current date and time. First create variables to store date and time, then display date and time in proper format (like: 13-8-2022 and 9:00 PM """