Lets write a C program to find sum of all the even numbers between range or between 2 integers input…