WAP to evaluate the marks of a student

//WAP to evaluate the marks of a student 
    if marks are > 80, print first division
    if marks between 65-80, print second division
    if marks between 50-65, print third division
    if marks between 40-50, print fourth division
    if marks are < 40, print fail//

#include<stdio.h>
#include<conio.h>
void main()
{
 int m;
 printf("Enter the marks\n");
 scanf("%d", &m);
 if (m>=80)
 {
  printf("First Division\n", m);
 }
 else if (m>=65&&m<80)
 {
  printf("Second Division\n", m);
 }
 else if (m>=50&&m<65)
 {
  printf("Third Division\n", m);
 }
 else if (m>=40&&m<50)
 {
  printf("Fourth Division\n", m);
 }
 else 
 {
  printf("Fail\n, m);
 }
 getch();
}

  • The Input and Output of this program is shown in the pictures below:-                                                                                                                                                                                                                                 INPUT                                                                                                                                                                   
     
                                                                                                                                                                                                                                                                                                          OUTPUT                                                                                                                               





Comments