ShriRam Changed status to publish July 15, 2022
1.<36 fail, 2.36 to <50=Third Division. 3.>=50 and <60=Second Division. 4.>=60 First Division. #include<stdio.h> /* 1.<36 fail 2.36 to <50=Third Division 3.>=50 and <60=Second Division 4.>=60 First Division */ void main() { int per,n1,n2,n3; printf("Enter marks of three subjects:"); scanf("%d%d%d",&n1,&n2,&n3); per=(n1+n2+n3)/3; printf("Result is :%d",per); if(per<=36) { printf(" Fail"); } else if(per>=36 && per<=50) { printf(" Third Division"); } else if(per>=50 && per<=60) { printf(" Second Division"); } else if(per>=60) { printf(" First division"); } getch(); }
ShriRam Changed status to publish July 15, 2022