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
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
Math,
5 months ago
Economy,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
Social Sciences,
10 months ago
Math,
1 year ago
English,
1 year ago
English,
1 year ago