public class Lecture7c {
  // Calculate the grade achieved depending on the mark
  // the grade can be greater than 100, but not less than 0
  public static void main (String [] args) {
    String result;
    System.out.print("enter your mark: ");
    int a = In.getInt();
    if (a >= 80) {
      result = "A ... Wow";
    } else if (a >= 70) {
      result = "B .. Pretty Good eh";
    } else if (a >= 60) {
      result = "C .. Not bad eh";
    } else if (a >=50) {
      result = "D .. for a bit of a disappointment";
    } else if (a >= 0) {
      result = "F ... ? ";
    } else { 
      result = "invalid input ... try again!! ";
    }
    System.out.println(result);
  }}
      
  