Challenge: Pass or Fail

Sumit Rawal answered on May 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • pass fail criteria
  • Solution Review: Pass or Fail

  • Challenge: Pass or Fail

    0

    Problem Statement

    Given the final percentage a student has gotten at the end of a semester, you need to write a program which decides if the student has passed or failed the semester.

    If the percentage is higher than or equal to 60, the student has passed the semester and if the percentage is lower than 60 the student has failed the semester.

    Input

    The input will be the variable percentage which stores the final percentage the student received.

    percentage has already been declared for you.

    Output

    The output should be pass if the student has a percentage equal to or higher than 60 and fail if the student has a percentage lower than 60.

    Sample Input

    85

    Sample Output

    pass

    Test Yourself

    Write your code in the given area. Try the exercise by yourself first, but if you get stuck, the solution has been provided. Good luck! 

    Popularity 1/10 Helpfulness 1/10 Language scala
    Source: Grepper
    Tags: scala
    Link to this answer
    Share Copy Link
    Contributed on May 23 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.