Home Uncategorized Write a C program to print list of even numbers between the...

Write a C program to print list of even numbers between the given range by user without using if statement or conditional operator.

SHARE

Print list of even numbers between the given range by user without using if statement or conditional operator in c language.

#include <stdio.h>
int main()
{
    int i,x,y;
    printf(“Hello World\n”);
    scanf(“%d%d”,&x,&y);
    for(i=0;i<=y;i+=2)
    for(;i>=x;)
    {
        printf(“%d\t”,i);
        break;
    }
    return 0;
}