n=int(input())
v=list(map(int,input().split()))
a,b=0,0
for i in v:
if(i%2==0):
a+=i
else:
b+=i
print(b-a)
n=int(input())
v=list(map(int,input().split()))
a,b=0,0
for i in v:
if(i%2==0):
a+=i
else:
b+=i
print(b-a)
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments