diff --git a/C/EvenNoBetweenIntervals.c b/C/EvenNoBetweenIntervals.c new file mode 100644 index 0000000..55aff01 --- /dev/null +++ b/C/EvenNoBetweenIntervals.c @@ -0,0 +1,15 @@ +#include +main() +{ + int a,b,i; + printf("Enter the intevals ::\n"); + scanf("%d\n%d",&a,&b); + printf("The even numbers are ::\n"); + for(i=a;i<=b;i++) + { + if(i%2==0) + { + printf("%d\n",i); + } + } +}