Pass or Fail Problem
Pass or Fail Problem — ExecCode School DSA Practice
Solve the Pass or Fail problem on ExecCode. Free online school DSA practice in Input & Basic Conditions. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a student's marks as a number. Your task is to decide whether the student should Pass or Fail. Print Pass if the marks are 40 or more. Otherwise, print Fail.
Examples
Input 80; Output Pass. Input 30; Output Fail
Constraints
0 <= marks <= 100
Practice Pass or Fail free on ExecCode. Browse DSA problems, topic map, and placement guides.