Ad Code

Responsive Advertisement

1065 - Even Between five Numbers

Author: Ismail Hosen

Daffodil International University





Problem Link

//Please follow from main function



#include<stdio.h>


int main()


{


    int i, n, count=0;


    for(i=1; i<=5; i++)


    {


        scanf("%d", &n);


        if(n%2==0)


        {


            count=count+1;


        }


    }


    printf("%d valores pares\n", count);


    return 0;


}





Post a Comment

0 Comments