Assignment 4-if_else
Assignment 4-if_else
________________________________________________________
1. Write a C program to check whether the given number is positive, negative or zero.
2. Write a C program to check whether the given number is even or odd
3. Write a C program to find out maximum number of three given numbers
4. Write a C program to calculate the bill. Users will get 15% discount on the shopping
of more than 3000 otherwise 5% .
5. Write a C program to check whether the given number is multiple of 21 or not.
6. Write a program to check whether the candidate is eligible for voting or not by
accepting the age value from the user.
7. Write a program to check whether the given character is an uppercase alphabet or not
8. Write a program to check whether the given character is an lowercase alphabet or not
9. Write a program to check whether the given alphabet is vowel or consonant.
10. Write a C program to do the following. Take marks of any three subjects as input.
Calculate average of the marks. If the average is greater than 35 student has passed
the exam otherwise failed