#include void main () { float s1,s2,s3,s4,s5,p; printf("enter the marks of s1 subjects\n"); scanf("%f",&s1); printf("enter the marks of s2 subjects\n"); scanf("%f",&s2); printf("enter the marks of s3 subjects\n"); scanf("%f",&s3); printf("enter the marks of s4 subjects\n"); scanf("%f",&s4); printf("enter the marks of s5 subjects\n"); scanf("%f",&s5); p=(s1+s2+s3+s4+s5)/5; if(p<40.00) { printf("%f fail",p); } if(p>=40.00&&p<=49.99) { printf("%f pass class",p); } if(p>=50.00&&p<=59.99) { printf("%f second class",p); } if(p>=60.00&&p<=66.65) { printf("%f first class",p); } if(p>=66.66) { printf("%f first class with distinction",p); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 50 in five subjects"); scanf("%f %f %f %f %f",&a, &b, &c, &d, &e); p=(a+b+c+d+e)/500*100; if(p<40) { printf("candidate is fail"); } if(p>=40&&p<=49.99) { printf("candidate is pass class"); } if(p>=50&&p<=59.99) { printf("candidate is second class"); } if(p>=60&&p<=66.65) { printf("candidate is first class"); } if(p>=66.66) { printf("candidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,f,g=500,h=100,i,j; printf("Enter marks of first subject="); scanf("%f",&a); printf("Enter marks of second subject="); scanf("%f",&b); printf("Enter marks of third subject="); scanf("%f",&c); printf("Enter marks of fourth subject="); scanf("%f",&d); printf("Enter marks of fifth subject="); scanf("%f",&e); f=a+b+c+d+e; i=f/g; j=i*h; printf("The percentage is =%f",j); if(j>=70&&j<=100) { printf("\n First class with Distiction",j); } if(j>=60&&j<70) { printf("\n First class",j); } if(j>=50&&j<60) { printf("\n Second class",j); } if(j>=40&&j<50) { printf("\n Pass class",j); } if(j>=0&&j<40) { printf("\n Fail",j); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 50 in five subjects"); scanf("%f %f %f %f %f",&a, &b, &c, &d, &e); p=(a+b+c+d+e)/500*100; if(p<40) { printf("candidate is fail"); } if(p>=40&&p<=49.99) { printf("candidate is pass class"); } if(p>=50&&p<=59.99) { printf("candidate is second class"); } if(p>=60&&p<=66.65) { printf("candidate is first class"); } if(p>=66.66) { printf("candidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 50 in five subjects"); scanf("%f %f %f %f %f",&a, &b, &c, &d, &e); p=(a+b+c+d+e)/500*100; if(p<40) { printf("candidate is fail"); } if(p>=40&&p<=49.99) { printf("candidate is pass class"); } if(p>=50&&p<=59.99) { printf("candidate is second class"); } if(p>=60&&p<=66.65) { printf("candidate is first class"); } if(p>=66.66) { printf("candidate is first class with distinction\n"); } }
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("first class with distiniction");
}
}
#include
ReplyDeletevoid main ()
{
float s1,s2,s3,s4,s5,p;
printf("enter the marks of s1 subjects\n");
scanf("%f",&s1);
printf("enter the marks of s2 subjects\n");
scanf("%f",&s2);
printf("enter the marks of s3 subjects\n");
scanf("%f",&s3);
printf("enter the marks of s4 subjects\n");
scanf("%f",&s4);
printf("enter the marks of s5 subjects\n");
scanf("%f",&s5);
p=(s1+s2+s3+s4+s5)/5;
if(p<40.00)
{
printf("%f fail",p);
}
if(p>=40.00&&p<=49.99)
{
printf("%f pass class",p);
}
if(p>=50.00&&p<=59.99)
{
printf("%f second class",p);
}
if(p>=60.00&&p<=66.65)
{
printf("%f first class",p);
}
if(p>=66.66)
{
printf("%f first class with distinction",p);
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 50 in five subjects");
scanf("%f %f %f %f %f",&a, &b, &c, &d, &e);
p=(a+b+c+d+e)/500*100;
if(p<40)
{
printf("candidate is fail");
}
if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
if(p>=66.66)
{
printf("candidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main ()
{
float a,b,c,d,e,p;
printf("Enter marks of five subject out of 100 \n");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(((a+b+c+d+e)/500)*100);
printf("\n\n\t\t%f",p);
if(p<=39.99)
{
printf("\nFail");
}
if(p>=40.00 && p<=49.99)
{
printf("\nPass Class");
}
if(p>=50.00 && p<=59.99)
{
printf("\nSecond Class");
}
if(p>=60.00 && p<=66.65)
{
printf("\nFirst Class");
}
if(p>=66)
{
printf("\nFirst Class with Distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f,g=500,h=100,i,j;
printf("Enter marks of first subject=");
scanf("%f",&a);
printf("Enter marks of second subject=");
scanf("%f",&b);
printf("Enter marks of third subject=");
scanf("%f",&c);
printf("Enter marks of fourth subject=");
scanf("%f",&d);
printf("Enter marks of fifth subject=");
scanf("%f",&e);
f=a+b+c+d+e;
i=f/g;
j=i*h;
printf("The percentage is =%f",j);
if(j>=70&&j<=100)
{
printf("\n First class with Distiction",j);
}
if(j>=60&&j<70)
{
printf("\n First class",j);
}
if(j>=50&&j<60)
{
printf("\n Second class",j);
}
if(j>=40&&j<50)
{
printf("\n Pass class",j);
}
if(j>=0&&j<40)
{
printf("\n Fail",j);
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("\t\nEnter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\nstudent is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\nstudent got pass class");
}
if(p>=50.00&&p<=59.99)
{
printf("\nstudent got second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\nstudent got first class");
}
if(p>66.65)
{
printf("\nstudent got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float s1,s2,s3,s4,s5,p;
printf("Enter marks of five subjects\n");
scanf("%f%f%f%f%f", &s1,&s2,&s3,&s4,&s5);
p=(s1+s2+s3+s4+s5)/500*100;
if(p>=40&& p<=49.99)
{
printf("pass class");
}
if(p>=50&& p<=59.99)
{
printf("second class ");
}
if(p>=60.00&& p<=66.65)
{
printf("first class");
}
if(p>= 66.66)
{
printf("first class with distinction");
}
}
#include
ReplyDeletevoid main ()
{
float s1,s2,s3,s4,s5,p;
printf("enter mark of five sub");
scanf("%f%f%f%f%f",&s1,&s2,&s3,&s4,&s5);
p=((s1+s2+s3+s4+s5)/5*100);
if(p>=40.00 &&p<=49.99)
{
printf("pass class");
}
if(p>=50.00 && p<=59.99)
{
printf ("second class");
}
if(p>60.00 && p<=66.65)
{
printf("first class");
}
if(p>=66.66)
{
printf("first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main ()
{
float a,b,c,d,e,p;
printf("Enter marks of five subject out of 100 \n");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(((a+b+c+d+e)/500)*100);
printf("\n\n\t\t%f",p);
if(p<=39.99)
{
printf("\nFail");
}
if(p>=40.00 && p<=49.99)
{
printf("\nPass Class");
}
if(p>=50.00 && p<=59.99)
{
printf("\nSecond Class");
}
if(p>=60.00 && p<=66.65)
{
printf("\nFirst Class");
}
if(p>=66)
{
printf("\nFirst Class with Distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=[(a+b+c+d+e)/500]*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of five subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<=39.99)
{
printf("fail");
}
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("1st class");
}
if(p>=66.66)
{
printf("distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=[(a+b+c+d+e)/500]*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main ()
{
float a,b,c,d,e,p;
printf("Enter marks of five subject out of 100 \n");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(((a+b+c+d+e)/500)*100);
printf("\n\n\t\t%f",p);
if(p<=39.99)
{
printf("\nFail");
}
else if(p>=40.00 && p<=49.99)
{
printf("\nPass Class");
}
else if(p>=50.00 && p<=59.99)
{
printf("\nSecond Class");
}
else if(p>=60.00 && p<=66.65)
{
printf("\nFirst Class");
}
else
{
printf("\nFirst Class with Distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of five subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=[(a+b+c+d+e)/500]*100;
if(p>=40&&p<=49.99
}
printf('pass class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of five subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=[(a+b+c+d+e)/500]*100;
if(p>=40&&p<=49.99
}
printf('pass class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main ()
{
float a,b,c,d,e,p;
printf("Enter marks of five subject out of 100 \n");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(((a+b+c+d+e)/500)*100);
printf("\n\n\t\t%f",p);
if(p<=39.99)
{
printf("\nFail");
}
else if(p>=40.00 && p<=49.99)
{
printf("\nPass Class");
}
else if(p>=50.00 && p<=59.99)
{
printf("\nSecond Class");
}
else if(p>=60.00 && p<=66.65)
{
printf("\nFirst Class");
}
else
{
printf("\nFirst Class with Distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("first class with distiniction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,m;
printf("Enter the marks");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
m=(a+b+c+d+e)/5;
if(m<40)
{
printf("Result is fail");
}
if(m>=40&&m<=49.99)
{
printf("Result is pass class");
}
if(m>=50&&m<=59.99)
{
printf("Result is second class");
}
if(m>=60&&m<=66.65)
{
printf("Result is first class");
}
if(m>=66.66)
{
printf("Result is pass with distinguish");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("fist class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the mark of five subject");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("first class");
}
if(p>=66)
{
printf("first class with distiniction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of five subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<=39.99)
{
printf("fail");
}
if(p>=40&&p<=49.99)
{
printf("pass class");
}
if(p>=50&&p<=59.99)
{
printf("second class");
}
if(p>=60&&p<=66.65)
{
printf("1st class");
}
if(p>=66.66)
{
printf("distinction");
}
}
#include
ReplyDeletevoid main ()
{
float a,b,c,d,e,p;
printf("Enter marks of five subject out of 100 \n");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(((a+b+c+d+e)/500)*100);
printf("\n\n\t\t%f",p);
if(p<=39.99)
{
printf("\nFail");
}
else if(p>=40.00 && p<=49.99)
{
printf("\nPass Class");
}
else if(p>=50.00 && p<=59.99)
{
printf("\nSecond Class");
}
else if(p>=60.00 && p<=66.65)
{
printf("\nFirst Class");
}
else
{
printf("\nFirst Class with Distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a;
int b,c,d,e,f;
printf("enter number");
scanf("%d%d%d%d%d",&b,&c,&d,&e,&f);
a=((b+c+d+e+f)/5);
printf("%d",a);
if(a<=40)
{
printf("fail");
}
if(a>=40&&a<50)
{
printf("get third class");
}
if(a>=50&&a<60)
{
printf("get second class");
}
if(a>=60&&a<65)
{
printf("get first class");
}
if(a>=66)
{
printf("get distingtion");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,f;
printf("Enter marks of five subjects");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/500*100;
if(f<40.00)
{
printf("student is fail");
}
if(f>=40.00&&f<=49.99)
{
printf("student got pass class");
}
if(f>=50.00&&f<=59.99)
{
printf("student got second class");
}
if(f>=60.00&&f<=64.99)
{
printf("student got first class");
}
if(f>65.99)
{
printf("student got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf(" marks of 5 subjets");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/500*100;
if(p<40.00)
{
printf("\n student is failed");
}
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 50 in five subjects");
scanf("%f %f %f %f %f",&a, &b, &c, &d, &e);
p=(a+b+c+d+e)/500*100;
if(p<40)
{
printf("candidate is fail");
}
if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
if(p>=66.66)
{
printf("candidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 50 in five subjects");
scanf("%f %f %f %f %f",&a, &b, &c, &d, &e);
p=(a+b+c+d+e)/500*100;
if(p<40)
{
printf("candidate is fail");
}
if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
if(p>=66.66)
{
printf("candidate is first class with distinction\n");
}
}