Nested if else in C Programming Examples1

Nested if else in c programming examples

#include <stdio.h>
int main()
{ int s;
    printf ("enter your score =");
    scanf("%d",&s);

    if(s>=80 && s<=100){
        printf("A+");
    }
else if(s>=75 && s<=79){



printf("A= 3.75");
}

else if(s>=70 && s<=74){

printf("A-=3.50");
}
else if(s>=65&&s<=69){

    printf("B+=3.25");

}
else if(s>=60 && s<=64){

  printf("B=3.00");
}
else if(s>=55 && s<=59){

    printf("B-=2.75");
}
else if(s>=50 && s<=54){

     printf("c+=2.5");
 }
else if(s>=45&&s<=49){
    printf("c=2.25");
}
else if(s>=40&&s<=44){

    printf("D=2.0");
}
else{
    printf("Failed? ");
    printf("         000000        \n");
    printf("     ((^^^^^^^^^^))      \n ");
    printf("    (( ^^   ^^  ))     \n");
    printf("     ((  0    0  ))    \n");
    printf("     ((    00    ))    \n");
    printf("      (( <||||> ))     \n");
    printf("        ((____))       \n");



}
}

Understanding Conditional Statements in C || C programming examples

See more

Factorial Program in C || What is the factorial of 100 in C

1 thought on “Nested if else in C Programming Examples1”

  1. Pingback: Program To Calculate Average In C | Free Code Center

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
NEW TOXIC ROCKET CYCLE DECK in Clash Royale 2023 Best Deck in Clash Royale Best Deck for Arena 8 in Clash Royale Best Hog deck for Pro players Best Clash Royale Deck