C Program using SWITCH statement

 #include<stdio.h>


int main()
{
    int i=9;
    switch (i) {  
        case 5:
        printf("value is 7");
        break;
        case 8:
        printf("value is 8");
        break;
        case 9:
        printf("value is 9");
        break;    
        default:
        printf("value is not present");

        break;
    }
    return 0;
}

OUTPUT
value is 9

Comments

Post a Comment

Popular posts from this blog

C Program using continue statement

C program of WHILE Loop

NULL Pointer in C.

C Program using DO WHILE loop

New Animated Login or signup page made by HTML, CSS and JavaScript.

C Program to print multiplication table of any number.

C Language Travel Agency Manager Exercise.

STRUCTURE IN C PROGRAMMING.