program to compute the average of the ten numbers



#include

int main()
{
int i;

for(i = 1; i <= 10; i = i + 1)
{
if(i % 2 == 0)
printf("%d is even\n", i);
else
printf("%d is odd\n", i);
}
return 0;
}

No comments:

Post a Comment