1065 - Even Between five Numbers
A Solution in c
int main()
{
int i, j, n = 0;
for(i = 1; i <= 5; i++)
{
scanf("%d", &j);
if(j%2 == 0)
n = n + 1;
}
printf("%d valores pares\n", n);
return 0;
}
Lakshman |
My name is Lakshman Gope. I'm a problem solver and a blogger. Now I am a student at Daffodil International University Department of Software Engineering. I like to learn algorithms and write clean code in an efficient and optimized way. I've been working on c, c++ and Java for a year and a half continuously.
No comments