Write a blue j program to print your grade
Answers
Answered by
1
Class grade
{
Public static void main(int marks)
{
If (marks>90){
System.out.println("you got A");
}
Else if (marks>70){
System.out.println("you got B");
}
Else if (marks <70){
System.out.println("you are fail");
}
}
}
{
Public static void main(int marks)
{
If (marks>90){
System.out.println("you got A");
}
Else if (marks>70){
System.out.println("you got B");
}
Else if (marks <70){
System.out.println("you are fail");
}
}
}
Answered by
1
ANSWER
............
CLASS GRADE
{............. ( INT MARKS)
}
( IF THE (<90 marks>)
{
System process ( you got the grade A)
}
IF ( 70 marks) < you got the grade B >
SYSTEM. IN
............
CLASS GRADE
{............. ( INT MARKS)
}
( IF THE (<90 marks>)
{
System process ( you got the grade A)
}
IF ( 70 marks) < you got the grade B >
SYSTEM. IN
Similar questions