Heres the problem

Write a program that inouts a serie of integer and pass them one at a time to function even which use the remainder operator to determine if an integer is even. The function should be integer arguement and return 1 is the integer is even and 0 otherwise.

Heres what i come out with so far

Code:#include <stdio.h> int main() { int integer1; int odd; int even; int remainder; printf("Enter an integer\n"); scanf("%d", &integer1); remainder = (integer1%2); if (remainder == 0) { printf("%d", integer1); printf("1\n"); } if (remainder != 0) { printf("%d", integer1); printf("0\n"); } return 0; }