Write a program to display student credits

Write a program to display student credits (first class, distinction) based on attendance and percentage of marks (hint : assume attendance =60,marks=75 then first class and attendance =75,marks=85 then distinction) 

Program 

 #include<stdio.h>

void main()

{

float marks,attendence;

printf(" enter marks value:");

scanf("%f",&marks);

printf("enter attendence value:");

scanf("%f",&attendence);

if(marks==85&&attendence==75)

{

printf("student got distinction:");

}

else

{

printf("student got first class\n");

}

}

Post a Comment

0 Comments