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