Advertisement

C Programming


C programming
Grades Check
#include<conio.h>
#include<stdio.h>
void main()
 { clrscr();
  int mark;
  scanf("%d",&mark);
  if(mark>=80)
  {printf("A+");}
  if(mark>=70 && mark<=79 )
  {printf("A");}
  if(mark>=60 && mark <=69)
  {printf("A-");}
  if(mark>=50&&mark<=59)
  {printf("B");}
  if(mark>=40&&mark<=49)
  {printf("C");}
  getch();
                                   }

No comments:

Post a Comment

Please comment bellow. Share your knowledge