Write an algorithm to
Input marks and print 'Fail' if marks < 40 and print 'Pass' if marks >= 40.
Answers
Answered by
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
Business Studies,
5 months ago
India Languages,
5 months ago
Social Sciences,
5 months ago
English,
11 months ago
English,
11 months ago
Physics,
1 year ago
Physics,
1 year ago