Saturday, July 6, 2013

Programming in C

(i)Write a function in C Programming Language, isEven(), that takes an
integer value as argument and returns 1 if the latter is even, otherwise
returns 0 (zero).

(ii)The function isEven() is saved to the file 'usefulfunctions.h'. You are
required to write a C program that allows the user to enter integer
numbers. To end we use 0 (zero) as the last number. Your program
should make use of the isEven() function from 'usefulfunctions.h' and print
the odd numbers on screen.

I am having difficuty to answer the second part. I can not even start it. Help? - Full Post

No comments:

Post a Comment