Google analytics

Wednesday, September 7, 2011

Program to find the Grade of the marks

/* Program to find the Grade of the marks */


#include<stdio.h>
#include<conio.h>
int main()
{
 int m;
 clrscr();
  printf("Enter The Marks : ");
  scanf("%d",&m);
 if
 (m>=90 && m>=80)
  printf("Grade is A!");
 else if
 (m>=80 && m>=70)
  printf("Grade is B!");
 else if 
 (m>=70 && m>=60)
  printf("Grade is C!");

 else if 
 (m>=60 && m>=50)
  printf("Grade is D!");
 else if 
 (m>=50 && m>=40)
  printf("Grade is E!");

 else if 
 (m>=40 && m>=33)
  printf("Grade is F!");
 getch();
}






No comments:

Post a Comment