السلام عليكم جميعا
# include
void main()
{
int degree;
cout<<"Enter the degree :";
cin>>degree;
if (degree>=90||degree<=100)
cout<<"A";
else if (degree>=80||degree<=89)
cout<<"B";
else if (degree>=70||degree<=79)
cout<<"C";
else if (degree>=60||degree<=69)
cout<<"D";
else
cout<<"F";
cout<<"n";
}الكود الذي ترونه سليم من الناحية اللغوية ولكن الغريب في الامر ان الناتج دائما A فما الحل برأيكم ؟؟؟