Conditional statements in C language with Solutions.
1. Write a program in c language to validate or check weather a given number is positive or negative using the if statement.
2. Write a program in C to find the maximum number among given three numbers using nested if else statements only.
3. write a program in C that calculates student grades based on marks given using if else statements.
4. Using ternary operator ?: write a program in C to check whether a given year is a leap year?
5. Write a program in C to find the roots of a quadratic equation using if-else commands.
6. Write a program in C to check whether a character is a vowel or a consonant using the Switch Case statement .
7. write a C program to calculate the electricity bill based on units consumed using switch case.
8.Create a C program to determine the day of the week based on the input number using switch-case.
9. Develop a program in C to calculate the area of a triangle or rectangle based on user input using 'switch-case'.
10. Write a program in C to check if a year is a leap year using 'if-else' statements.
11.Create a program in C to determine the BMI category based on user input using 'switch-case'.
12.Implement a program C language to check if a character is an alphabet, digit, or special character using 'if-else' statements.
13.Develop a program in C language to check if a number is positive, negative, or zero using 'if-else' statements.
14.Write a program in C to find the maximum of three numbers using nested 'if-else' statements.
15.Create a program in C to convert temperature from Celsius to Fahrenheit or vice versa using 'switch-case'.
16.Write a program in C to find the absolute value of a number using 'if-else' statements.
17.Write a program to in C check if a character is uppercase or lowercase using 'switch-case'.
18.Create a program in C to determine the season based on the month using 'if-else' statements.
19.Develop a program in C to perform basic arithmetic operations based on user input using 'switch-case'.
20. C language program to check if a given character is a special character of digit using if else statement.
21. Write a program in C to calculate the income tax based on the salary using 'if-else' statements.