data structures using int numprintf("\ enter any number ")scanf("% "&num)if(num== printf("\ the value is equal to zero")else if(num> printf("\ the number is positive")else printf("\ the number is negative")return note that if the first test expression evaluates to true valuei num= then the rest of the statements in the code will be ignored and after executing the printf statement that displays 'the value is equal to zero'the control will jump to return statement switch-case statement switch-case statement is multi-way decision statement that is simplified version of an ifelse-if block the general form of switch statement is shown in fig true value syntax of switch statement statement block switch (variablecase value statement block breakcase value statement block breakcase value nstatement block nbreakdefaultstatement block dbreakstatement xtrue statement block false value false false true value statement block false statement block statement figure switch-case statement construct the power of nested if-else-if statements lies in the fact that it can evaluate more than one expression in single logical structure switch statements are mostly used in two situationswhen there is only one variable to evaluate in the expression when many conditions are being tested for