Calculate Student Grade in Programming Language

Calculate Student Grade in Programming Language:

#include<iostream>
using namespace std;
void gradingsystem(int a);
void main()
{
int a;
gradingsystem(a);
}
void gradingsystem(int a)
{
cout<<"Enter Average of Numbers\n";
cin>>a;
if(a>=90 & a<=100)
cout<<"Your Grade is A\n";
else if(a>=80 & a<=89)
cout<<"Your Grade is B\n";
else if(a>=70 & a<=79)
cout<<"Your Grade is C\n";
else if(a>=60 & a<=69)
cout<<"Your Grade is D\n";
else if(a<60)
cout<<"Your Grade is F\n";
}

Download:

To download this code click on the given link below:

Comments

Popular posts from this blog

How to Run Assembly Language Programming Code In Visual Studio 2019

How to Display Table of any Number in Assembly Language

How to Display Character in Assembly language