Open shahnawazm786 opened 2 years ago
import java.util.Scanner;
/a. Below 25 - F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B f. Above 80 - A Ask user to enter marks and print the corresponding grade./
public class Grade {
public static void main(String[] args) {
int m;// variable m to store marks
System.out.println("Enter your TOTAL Marks..> ");
Scanner s=new Scanner(System.in);
m=s.nextInt();// inout marks from user.
if(m<=100&&m>80) {
System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-A");
}
else if(m<=80&&m>60) {
System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-B");
}
else if(m<=60&&m>50) {
System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-C");
}
else if(m<=50&&m>45) {
System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-D");
}
else if(m<=45&&m>25) {
System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-E");
}
else if(m<=25&&m>0) {
System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-Fail");
}
else {
System.out.println(" your input marks is out of range ");
}
}
}
import java.util.Scanner;
/a. Below 25 - F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B f. Above 80 - A Ask user to enter marks and print the corresponding grade./
public class Grade {
public static void main(String[] args) { int m;// variable m to store marks System.out.println("Enter your TOTAL Marks..> "); Scanner s=new Scanner(System.in); m=s.nextInt();// inout marks from user. if(m<=100&&m>80) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-A"); } else if(m<=80&&m>60) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-B"); } else if(m<=60&&m>50) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-C"); } else if(m<=50&&m>45) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-D"); } else if(m<=45&&m>25) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-E"); } else if(m<=25&&m>0) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-Fail"); } else { System.out.println(" your input marks is out of range "); } }
}
Good Keep it up
Thank u so much Bhaijaan for ur precious time to check program and send me feed back ..thank u
On Mon, Mar 14, 2022, 8:48 PM Shahnawaz @.***> wrote:
import java.util.Scanner;
/a. Below 25 - F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B f. Above 80 - A Ask user to enter marks and print the corresponding grade./
public class Grade {
public static void main(String[] args) { int m;// variable m to store marks System.out.println("Enter your TOTAL Marks..> "); Scanner s=new Scanner(System.in); m=s.nextInt();// inout marks from user. if(m<=100&&m>80) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-A"); } else if(m<=80&&m>60) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-B"); } else if(m<=60&&m>50) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-C"); } else if(m<=50&&m>45) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-D"); } else if(m<=45&&m>25) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-E"); }
else if(m<=25&&m>0) { System.out.println("YOUR TOTAL MARKS IS "+m+" GRADE-Fail"); }
else { System.out.println(" your input marks is out of range ");
} }
}
Good Keep it up
— Reply to this email directly, view it on GitHub https://github.com/shahnawazm786/Al_Khozaimi_Batch/issues/5#issuecomment-1067053137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYCI5D7Z6CD6NDTQ4XCN32DU75UXJANCNFSM5QKCHBEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
a. Below 25 - F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B f. Above 80 - A Ask user to enter marks and print the corresponding grade.