You are on page 1of 1

#include<stdio.

h>

int main (void){


int i, b, x=0,y=0,z=0;

printf("Enter an integer ; ");


scanf("%d", &b);

while(b!=0){
scanf("%d", &b);
if(b%2==0){
if(b>x){
x=b;
}
y++;
}
}
z=y;
if(z==1)
printf("there are no even numbers");
else
printf("The highest even integer; %d\n", x);
return 0;
}

You might also like