#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); } else if(p>=40.00&&p<=49.99) { printf("%f pass class",p); } else if(p>=50.00&&p<=59.99) { printf("%f second class",p); } else if(p>=60.00&&p<=66.65) { printf("%f first class",p); } else { 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { printf("candidate is first class with distinction\n"); } }
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); } else if(p>=40.00&&p<=49.99) { printf("%f pass class",p); } else if(p>=50.00&&p<=59.99) { printf("%f second class",p); } else if(p>=60.00&&p<=66.65) { printf("%f first class",p); } else { 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { printf("candidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter the marks of subject"); scanf("%f%f%f%f%f",&a,&b,&c,&d,&e); p=(a+b+c+d+e)/5; if(p<40) { printf("fail"); } else if(p>=40&&p<59.99) { printf("Student has pass class"); } else if(p>=60&&p<=66.65) { printf("Student has first class"); } else { printf("Student has first class with distinction"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter the marks of subject"); scanf("%f%f%f%f%f",&a,&b,&c,&d,&e); p=(a+b+c+d+e)/5; if(p<40) { printf("fail"); } else if(p>=40&&p<59.99) { printf("Student has pass class"); } else if(p>=60&&p<=66.65) { printf("Student has first class"); } else { printf("Student has first class with distinction"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,f; printf("Enter the marks"); scanf("%f%f%f%f%f",&a,&b,&c,&d,&e); f=(a+b+c+d+e)/5; printf("Your Persentage is %f\n",f); if(f<40) { printf("Your Result Is FAIL\n"); } else if(f>=40&&f<=49.99) { printf("Your Result Is PASS CLASS\n"); } else if(f>=50&&f<=59.99) { printf("Your Result Is SECOND CLASS\n"); } else if(f>=60&&f<=66.65) { printf("Your Result Is FIRST CLASS \n"); } else { printf("Your Result Is DISTINCTION\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } } Reply
#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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { printf("candidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { printf("candidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate is first class with distinction\n"); } }
#include void main() { float a,b,c,d,e,p; printf("enter marks obtained out of 100 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("\tcandidate is fail\n"); } else if(p>=40&&p<=49.99) { printf("\tcandidate is pass class\n"); } else if(p>=50&&p<=59.99) { printf("\tcandidate is second class\n"); } else if(p>=60&&p<=66.65) { printf("\tcandidate is first class\n"); } else { printf("\tcandidate 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { 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"); } else if(p>=40&&p<=49.99) { printf("candidate is pass class"); } else if(p>=50&&p<=59.99) { printf("candidate is second class"); } else if(p>=60&&p<=66.65) { printf("candidate is first class"); } else { printf("candidate is first class with distinction\n"); } }
#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); } else if(p>=40.00&&p<=49.99) { printf("%f pass class",p); } else if(p>=50.00&&p<=59.99) { printf("%f second class",p); } else if(p>=60.00&&p<=66.65) { printf("%f first class",p); } else { printf("%f first class with distinction",p); } }
#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);
}
else if(p>=40.00&&p<=49.99)
{
printf("%f pass class",p);
}
else if(p>=50.00&&p<=59.99)
{
printf("%f second class",p);
}
else if(p>=60.00&&p<=66.65)
{
printf("%f first class",p);
}
else
{
printf("%f first class with distinction",p);
}
}
#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");
}
}
This comment has been removed by the author.
ReplyDelete#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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
printf("candidate is first class with distinction\n");
}
}
#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");
}
else
if(p>=40.00&&p<=49.99)
{
printf("\n pas class");
}
else
if(p>=50.00&&p<=59.99)
{
printf("\n second class");
}
else
if(p>=60.00&&p<=66.65)
{
printf("\n first class");
}
else
if(p>=66.66)
{
printf("\n first class with dist");
}
}
#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");
}
else if(p>=40.00&&p<=49.99)
{
printf("\nstudent got pass class");
}
else if(p>=50.00&&p<=59.99)
{
printf("\nstudent got second class");
}
else if(p>=60.00&&p<=66.65)
{
printf("\nstudent got first class");
}
else
{
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");
}
else if(p>=50&& p<=59.99)
{
printf("second class ");
}
else if(p>=60.00&& p<=66.65)
{
printf("first class");
}
else
{
printf("first class with distinction");
}
}
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);
}
else if(p>=40.00&&p<=49.99)
{
printf("%f pass class",p);
}
else if(p>=50.00&&p<=59.99)
{
printf("%f second class",p);
}
else if(p>=60.00&&p<=66.65)
{
printf("%f first class",p);
}
else
{
printf("%f first class with distinction",p);
}
}
#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");
}
else if(p>=40.00&&p<=49.99)
{
printf("\nstudent got pass class");
}
else if(p>=50.00&&p<=59.99)
{
printf("\nstudent got second class");
}
else if(p>=60.00&&p<=66.65)
{
printf("\nstudent got first class");
}
else
{
printf("\nstudent got first class with distinction");
}
}
#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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
printf("candidate is first class with distinction\n");
}
}
#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");
}
else if(p>=40.00&&p<=49.99)
{
printf("\nstudent got pass class");
}
else if(p>=50.00&&p<=59.99)
{
printf("\nstudent got second class");
}
else if(p>=60.00&&p<=66.65)
{
printf("\nstudent got first class");
}
else
{
printf("\nstudent got first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float p;
int a,b,c,d,e;
printf("enter marks of 5 subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=a+b+c+d+e/5;
if(p<40)
{
printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is first class");
}
else
{
printf("result is distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<40)
{
printf("fail");
}
else if(p>=40&&p<59.99)
{
printf("pass class");
}
else if(p>=60&&p<=66.65)
{
printf("1st class");
}
else
{
printf("distinction");
}
}
#include
ReplyDeletevoid main()
{
float p;
int a,b,c,d,e;
printf("enter marks of five subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<40)
{
` printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is frist class");
}
else
{
printf("result is distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<40)
{
printf("fail");
}
else if(p>=40&&p<59.99)
{
printf("Student has pass class");
}
else if(p>=60&&p<=66.65)
{
printf("Student has first class");
}
else
{
printf("Student has first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float p;
int a,b,c,d,e;
printf("enter marks of five subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<40)
{
` printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is frist class");
}
else
{
printf("result is distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter the marks of subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
p=(a+b+c+d+e)/5;
if(p<40)
{
printf("fail");
}
else if(p>=40&&p<59.99)
{
printf("Student has pass class");
}
else if(p>=60&&p<=66.65)
{
printf("Student has first class");
}
else
{
printf("Student has first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate 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");
}
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,f;
printf("Enter the marks");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
f=(a+b+c+d+e)/5;
printf("Your Persentage is %f\n",f);
if(f<40)
{
printf("Your Result Is FAIL\n");
}
else if(f>=40&&f<=49.99)
{
printf("Your Result Is PASS CLASS\n");
}
else if(f>=50&&f<=59.99)
{
printf("Your Result Is SECOND CLASS\n");
}
else if(f>=60&&f<=66.65)
{
printf("Your Result Is FIRST CLASS \n");
}
else
{
printf("Your Result Is 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");
}
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 p;
int a,b,c,d,e;
printf("enter marks of 5 subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=a+b+c+d+e/5;
if(p<40)
{
printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is first class");
}
else
{
printf("result is distinction");
}
}
#include
ReplyDeletevoid main()
{
float p;
int a,b,c,d,e;
printf("enter marks of 5 subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=a+b+c+d+e/5;
if(p<40)
{
printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is first class");
}
else
{
printf("result is distinction");
}
}
#include
ReplyDeletevoid main()
{
float p;
int a,b,c,d,e;
printf("enter marks of 5 subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=a+b+c+d+e/5;
if(p<40)
{
printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is first class");
}
else
{
printf("result is distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,m;
printf("Enter the 5 sub 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");
}
else if(m>=40&&m<=49.99)
{
printf("Result is pass class");
}
else if(m>=50&&m<=59.99)
{
printf("Result is second class");
}
else if(m>=60&&m<=69.99)
{
printf("Result is first class");
}
else
{
printf("Result is pass with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,m;
printf("Enter the 5 sub 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");
}
else if(m>=40&&m<=49.99)
{
printf("Result is pass class");
}
else if(m>=50&&m<=59.99)
{
printf("Result is second class");
}
else if(m>=60&&m<=69.99)
{
printf("Result is first class");
}
else
{
printf("Result is pass with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,m;
printf("Enter the 5 sub 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");
}
else if(m>=40&&m<=49.99)
{
printf("Result is pass class");
}
else if(m>=50&&m<=59.99)
{
printf("Result is second class");
}
else if(m>=60&&m<=69.99)
{
printf("Result is first class");
}
else
{
printf("Result is pass with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,m;
printf("Enter the 5 sub 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");
}
else if(m>=40&&m<=49.99)
{
printf("Result is pass class");
}
else if(m>=50&&m<=59.99)
{
printf("Result is second class");
}
else if(m>=60&&m<=69.99)
{
printf("Result is first class");
}
else
{
printf("Result is pass with distinction");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
Reply
#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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
printf("candidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#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");
}
else if(p>=50&& p<=59.99)
{
printf("second class ");
}
else if(p>=60.00&& p<=66.65)
{
printf("first class");
}
else
{
printf("first class with distinction");
}
}
#include
ReplyDeletevoid main()
{
float p;
int a,b,c,d,e;
printf("enter marks of 5 subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
p=a+b+c+d+e/5;
if(p<40)
{
printf("result is fail");
}
else if(p>=40&&p<=49.99)
{
printf("result is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("result is second class");
}
else if(p>=60&&p<=66.65)
{
printf("result is first class");
}
else
{
printf("result is distinction");
}
}
#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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
printf("candidate is first class with distinction\n");
}
}
This comment has been removed by the author.
ReplyDelete#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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
printf("candidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate is first class with distinction\n");
}
}
#include
ReplyDeletevoid main()
{
float a,b,c,d,e,p;
printf("enter marks obtained out of 100 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("\tcandidate is fail\n");
}
else if(p>=40&&p<=49.99)
{
printf("\tcandidate is pass class\n");
}
else if(p>=50&&p<=59.99)
{
printf("\tcandidate is second class\n");
}
else if(p>=60&&p<=66.65)
{
printf("\tcandidate is first class\n");
}
else
{
printf("\tcandidate 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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
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");
}
else if(p>=40&&p<=49.99)
{
printf("candidate is pass class");
}
else if(p>=50&&p<=59.99)
{
printf("candidate is second class");
}
else if(p>=60&&p<=66.65)
{
printf("candidate is first class");
}
else
{
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");
}
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 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);
}
else if(p>=40.00&&p<=49.99)
{
printf("%f pass class",p);
}
else if(p>=50.00&&p<=59.99)
{
printf("%f second class",p);
}
else if(p>=60.00&&p<=66.65)
{
printf("%f first class",p);
}
else
{
printf("%f first class with distinction",p);
}
}