I am writing down the solution in python language.
sum = 0
N = int(input("Enter a number"))
if N%2==0:
sum = sum + N
else:
print("wrong input")
This is the solution of the problem i hope you get the idea.
Thanks
9.5m questions
12.2m answers