Write a program in c to find the division of student
3 years ago
C Programming
#include<stdio.h>
#include<conio.h>
Void main()
{
Int per;
Clrscr();
Printf(“Enter percentage of student”);
Scanf("%d", &per);
If(per > 100)
{
Printf(“\n invalid percent”);
} else if (per >= 60)
{
Printf(“\n first division”);
} else if (per < 60 && per >= 50) {
printf(“second division”);
} else if (per < 50 && per >= 40) {
printf(“\m third division”);
} else
{
Printf(“\n fail”);
}
getchI();
}
Rajiv Shah
Jul 21, 2022