Write a program in c to find the division of student

1 year 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();
}
3
Rajiv Shah
Jul 21, 2022
More related questions

Questions Bank

View all Questions