sum_even=0
sum_odd=0
i=1
while(i<=10):
x=int(input(" Enter a number"))
if(x%2==0):
sum_even+=x
else:
sum_odd+=x
i=i+1
print("Sum Even :", sum_even)
print("Sum odd :", sum_odd)
Follow
Me On Social Media :-
INSTA photography page :- https://www.instagram.com/photo_mania_hub/
Twitter link : - https://twitter.com/ApurbaKhanra199
Facebook page link (Crazy Coders) :-https://www.facebook.com/codercrazy/?modal=admin_todo_tour
Insta photography link :- https://www.instagram.com/photo_mania_hub/
Facebook link :- https://www.facebook.com/profile.php?id=100009747586288
For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/
0 Comments