if else program [doesnt work]

 #include <stdio.h>


int main()

{int marks;

printf("Please enter your 12th marks\n");

scanf("%d", & marks);

if (marks >= 85) {

    printf("you are eligible for laptop\n");

} else{ if (marks <= 33) { 

    printf(" you are pass\n");} else {printf("you are fail");

}}

    printf(" best of luck for your career");


    return 0;

}


Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation