Write a program to input marks. If marks are greater than or equal to 40, display “PASS” otherwise display “FAIL”
Answers
Answered by
3
class pro
{
public static void main(double m)
{
if(m>=40)
System.out.println(“Pass”);
else
System.out.println(“Fail”);
}
}
Hope this helps you:D
{
public static void main(double m)
{
if(m>=40)
System.out.println(“Pass”);
else
System.out.println(“Fail”);
}
}
Hope this helps you:D
Similar questions