Algorithm
Step 1: StartStep 2: Read the marks (M) of computerStep 3: If M>40 Print "Passed" else, Print "Failed"Step 4: Print ResultStep 5: End
Flowchart:
Start
If M<40
Print Failed Print Passed
END