else if statement in c

[ad_1]

else if statement in c
// C program to illustrate nested-if statement
#include 

int main() {
    int i = 20;

    if (i == 10)
        printf("i is 10");
    else if (i == 15)
        printf("i is 15");
    else if (i == 20)
        printf("i is 20");
    else
        printf("i is not present");
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com