write a python program to accept maths from the students and check is he passed or failled
Answers
Answered by
0
Answer:
Here's a Java version, both Python and Java are OOP, they are similar.
Explanation:
import Java.util.*;
public class Marks
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int m;
System.out.println("Enter your marks");
m=in.nextInt();
if(m<35)
System.out.println("You have failed in the exam ");
else
System.out.println(" You've passed in the exam");
}
}
Similar questions
English,
1 month ago
Social Sciences,
1 month ago
Social Sciences,
2 months ago
Math,
8 months ago
Math,
8 months ago