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");
}
}
0 Comments
à°®ీà°•ు edit à°šేà°¸ి à°«ొà°Ÿోà°¸్, à°µీà°¡ిà°¯ోà°¸్, à°‡ంà°•ా à°¦ెà°¨ి à°—ుà°°ింà°šి à°…à°¨్à°¨ా ఇన్à°«à°°్à°®ేà°·à°¨్ à°•ాà°µాà°²ీ à°…ంà°Ÿే Plz comment à°šేà°¯ంà°¡ి