Program To Find Grade of a Student Of using Percentage January 01, 2018 Programing In C No comments #include<conio.h> #include<stdio.h> void main() { float a; clrscr(); printf("Enter the value of percentage"); scanf("%f",&a); if(a>80) printf("\n honour"); else if(a>70) printf("\n 1st division"); else if(a>60) printf("\n 2nd division"); else if(a>=40) printf("\n 3rd division"); else if(a<40) printf("\n fail"); getch(); } Output Enter the value of percentage=90 honour Enter the value of percentage=30 fail Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment