Syntax a> if (condition1 && condition2 && condition3) b> if (condition1 // condition2 // condition3)The syntax in the statement ‘a’ represents a complex if statement which combines different conditions using the and operator in this case if all the conditions are true only then the whole statement is considered to be true. Even if one condition is false the whole if statement is considered to be false.
#include ' stdio.h ' main ( ) { int a,b,c,big; printf (“Enter three numbers”); scanf (“%d %d %d”, &a, &b, &c); if (a>b) // check whether a is greater than b if true then if(a>c) // check whether a is greater than c big = a ; // assign a to big else big = c ; // assign c to big else if (b>c) // if (a>b) fails check whether b>c big = b ; // assign b to big else big = c ; printf (“Largest of %d,%d&%d = %d”, a,b,c,big); }