Computer Science, asked by sujit1970dutta, 10 months ago

write a program in Java using scanner to accept name and total marks out of hundred of a student in an examination display whether he passed or failed if pass marks is 80​

Answers

Answered by pavithranatarajan855
1

Answer:

import java.util.Scanner;

class student

{

public static void main(String args[]){

Scanner s=new Scanner(System.in);

int mark=s.nextInt();

if(mark>=80)

System.out.println("He passed the exam");

else

System.out.println("He failed in the exam");

}

}

Explanation:

PLEASE MARK ME AS BRAINLIEST

Similar questions