Docsity

C Programming Exercises: If, Else If, Nested If Else Statements, Exercises of C programming

Partial preview of the text

Download C Programming Exercises: If, Else If, Nested If Else Statements and more Exercises C programming in PDF only on Docsity!

Coding exercise for If , else if , nested else if 1)Write a C program to find largest number among 3 no’s using nested if else? 2)Write a C program to find factorial of a number

3)Write a C program to find whether a year is leap or not using if else?

5)Write a C program to grade a student using ladder else if?

Percent < 35 Fail Percent < 50 Just pass Percent < 60 2nd class Percent <70 1st class 6)Write a C program using switch case with condition of marks