If (condition1) Statement – 1; Else if (condition2) Statement2; Else if (condition3) Statement3; Else if (condition) Statement n; Else Default statement; Statement-x;
#include < stdio.h > void main ( ) { int marks: printf (“Enter marks\n”); scanf (“%d”, & marks); If (marks < =100 && marks > = 70 ) printf (“\n Distinction”); else if (marks > = 60) printf(“\n First class”); else if (marks > = 50) printf (“\n second class”); else if (marks>=35) printf (“\n pass class”); else printf (“Fail”); }