Decision making with if statement may be implemented in different forms depending on the complexity of conditions to be tested.The different forms are, Simple if statement if….else statement Nested if….else statement Using else if statement Syntax if( expression ) { if( expression1 ) { statement block1; } else { statement block2; } } else { statement block3; } If the expression is false then block3 will be executed, and if expression is true then again expression1 is evaluated, if it is true then block1 is executed, and if false then block2 will be executed. Example is shown below :: #include<stdio.h>…