The following selection statement supports by C programming language. if ( expression ) secondary-block if ( expression ) secondary-block else secondary-block switch ( expression ) secondary-block   In C, a selection statement selects among a set of secondary blocks depending on the value of a controlling expression. That means if…