Program 6

#include <stdio.h>
#include <conio.h>
void main () {
int x;
printf(“Enter percentage:”);
scanf(“%d”,&x);
if (x<51)
printf(“\nFail”);
else if (x<61)
printf(“\nGrade: D”);
else if (x<71)
printf(“\nGrade: C”);
else if (x<81)
printf(“\nGrade: B”);
else if (x<101)
printf(“\nGrade: A”);
else
printf(“Invalid marks”);
getch();
}

M.Bakhtiar Zuberi
I'm M.Bakhtiar Zuberi, the owner of 3DPixelz.com and its network websites. I've been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL (crypto-currency) and ETC. I love to blog here and write for Tribune in my free time.

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: