#include <stdio.h>
int main() {
int marks1,marks2,marks3;
printf("Enter marks1:\n");
scanf("%d",&marks1);
printf("Enter marks2:\n");
scanf("%d",&marks2);
printf("Enter marks3:\n");
scanf("%d",&marks3);
printf("The marks are %d %d and %d",marks1,marks2,marks3);
if(marks1<33||marks2<33||marks3<33){
printf("You are failed due to less marks in individual subject(s)");
}
else if((marks1+marks2+marks3)/3<40){
printf("You are failed due to less percentage");
}
else{
printf("You are passed");
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: