#include<stdio.h>
int main ()
{
int marks;
char grade;
scanf("%d", &marks);
if(marks >= 80){
grade = 'A+';
printf("Your grade is %c\n", grade);
}
else if(marks >= 70){
grade = 'A';
printf("Your grade is %c\n", grade);
}
else if(marks >= 60){
grade = 'B';
printf("Your grade is %c\n", grade);
}
else if(marks >= 50){
grade = 'c';
printf("Your grade is %c\n", grade);
}
else if(marks >= 40){
grade = 'D';
printf("Your grade is %c\n", grade);
}
else{
printf("Your grade is F");
}
return 0;
}
int main ()
{
int marks;
char grade;
scanf("%d", &marks);
if(marks >= 80){
grade = 'A+';
printf("Your grade is %c\n", grade);
}
else if(marks >= 70){
grade = 'A';
printf("Your grade is %c\n", grade);
}
else if(marks >= 60){
grade = 'B';
printf("Your grade is %c\n", grade);
}
else if(marks >= 50){
grade = 'c';
printf("Your grade is %c\n", grade);
}
else if(marks >= 40){
grade = 'D';
printf("Your grade is %c\n", grade);
}
else{
printf("Your grade is F");
}
return 0;
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন