Programs with Conditional or Branching Statements in C-language

 

1. Write a simple C-program to check whether a given number is negative or non-negative.


2. Write a C-program to check whether the selected token is 7 or not.(lucky draw result check😂)

3. Write a C-program to check whether the given number is an even number or an odd number.

4. Write a C-program to check whether the given number is exactly divisible by 9 or not.


5. Write a C-program to print the greatest number among given two different numbers.

6. Write a C-program to print result according to the given obtained marks.


7. Write a C-program to find the greatest number among given three different numbers using nested if-else statement.


8. Write a C-program to print the division of the student according to the total marks obtained using nested if-else statement.

9. Write a C-program to find the greatest number among given three different numbers using if-else-if ladder.

10. Write a C-program to print the grade of the student according to the total marks obtained using nested if-else-if ladder.

11. Write a C-program to print the day of the week according to the given integer.


11. Write a C-program for a simple calculator using switch statement.

Post a Comment

0 Comments