0% found this document useful (0 votes)
4 views

Assignment 4-if_else

The document outlines a series of programming assignments focused on using IF ELSE statements in C. Tasks include checking the sign of a number, determining even or odd status, finding the maximum of three numbers, calculating shopping discounts, and verifying voting eligibility based on age. Additional assignments involve character checks for uppercase, lowercase, vowels, and calculating student pass/fail status based on average marks.

Uploaded by

Rutveg Chaudhari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 4-if_else

The document outlines a series of programming assignments focused on using IF ELSE statements in C. Tasks include checking the sign of a number, determining even or odd status, finding the maximum of three numbers, calculating shopping discounts, and verifying voting eligibility based on age. Additional assignments involve character checks for uppercase, lowercase, vowels, and calculating student pass/fail status based on average marks.

Uploaded by

Rutveg Chaudhari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment 4: IF ELSE Statements

________________________________________________________

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

You might also like