#include<stdio. h>
main() {
int a;
printf("Enter a: \n");
scanf("%d", &a);
if (a % 2 == 0) {
printf("The given number is EVEN");
} else {
printf("The given number is ODD");
}
}
the above program find the even or odd but how can i find multiple of 2 for array of 100 elemens
main() {
int a;
printf("Enter a: \n");
scanf("%d", &a);
if (a % 2 == 0) {
printf("The given number is EVEN");
} else {
printf("The given number is ODD");
}
}
the above program find the even or odd but how can i find multiple of 2 for array of 100 elemens
Comment