Python Program for Checking Whether the Number is an Even Number or Not


Write a python program for checking whether the given number is an even number or not


import math;
x1=int(input("Enter x1--->"))
y1=int(input("Enter y1--->"))
x2=int(input("Enter x2--->"))
y2=int(input("Enter y2--->"))
d1 = (x2 - x1) * (x2 - x1);
d2 = (y2 - y1) * (y2 - y1);
res = math.sqrt(d1+d2)
print ("Distance between two points:",res);


Enter a number---->10
EVEN Number
Enter a number---->11
ODD Number

Leave a Comment