Computer Science, asked by divydidroast, 15 days ago

write a python program to accept maths from the students and check is he passed or failled​

Answers

Answered by rnghelios
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