Computer Science, asked by anandsharma607, 11 months ago

Write an algorithm to
Input marks and print 'Fail' if marks < 40 and print 'Pass' if marks >= 40.​

Answers

Answered by Anonymous
3

Answer:

import java.util.*;

class Marks

{

public static void main(String args[ ] )

{

Scanner sc=new Scanner(System.in);

SOPln("ENTER MARKS");

int m=sc.nextInt( );

if(m<40)

SOPln("Fail");

else

SOPln("Pass");

}

}

Explanation:

HOPE IT HELPS U

Similar questions