You are on page 1of 2

#include<stdio.

h>
#include<conio.h>
int main()
{ float x;
printf("Give your attendance percentage\n");
scanf("%f", &x);
if(x>100) {
printf("Attendance should not be more than 100 percent.Please write down the
correct percentage\n");
}
else if(x>89) {
printf("marks 100\n");
}
else if(x>84) {
printf("marks 90\n");
}
else if(x>79) {
printf("marks 80\n");
}
else if(x>74) {
printf("marks 70\n");
}
else if(x>69) {
printf("marks 60\n");
}
else if(x>64) {
printf("marks 50\n");
}
else if(x>59) {
printf("marks 40\n");
}
else if(x<60) {
printf("incomplete ");
}
printf("\n\nName:Kazi Md. Mashrur Abid\
\nRoll:1401004\
\nsection:A\
\nGroup:A1-01\
\nDepartment of CIVIL,KUET\nKHULNA-9203");
getch();
}

OUTPUT:
Give your attendance percentage
88
marks 90

Name:Kazi Md. Mashrur Abid


Roll:1401004
section:A
Group:A1-01
Department of CIVIL,KUET
KHULNA-9203

You might also like