0% found this document useful (0 votes)
3 views1 page

C Programming Conditional Exercises

Uploaded by

Eugene Mbah Tebo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

C Programming Conditional Exercises

Uploaded by

Eugene Mbah Tebo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Using the Conditional If-else statement, try to do the following exercises.

1. Write a C program to accept two integers and check whether they are equal or not.
2. Write a C program to check whether a given number is even or odd
3. Write a C program to read the age of a candidate and determine whether he is eligible to cast
his/her own vote. A candidate can vote if he/she is of age 18years and above.
4. Write a C program to find the largest of three numbers enter by the user.

You might also like