Computer Science, asked by sabitasingh2092, 4 months ago

write a program to input the marks and print if the studenrs gets promotion . the criteria to get promotion is to get 40% and above​

Answers

Answered by Ari114
1

Question:

write a program to input the mark and print it if the student grade promotion the criteria to get promotion is to get 40% and abov e.

PLEASE BARK AS A BRAINLIST

Explanation:

import java.util.*;

class Ariyans_report_card

{

public static void main()

{

int marks;

String name="";

Scanner ari= new Scanner(System.in);

System.out.print("Enter your name");

name=ari.nextLine();

System.out.print("Enter the mark you got");

marks =ari.nextInt();

if(marks >= 40)

{

System.out.println("Promotion granted");

}

if(marks < 40) System.out.println("Pomotion not granted");

}

}

Similar questions