write program of algorithm:
Start
Input marks
If marks <50
Print You have failed
if marks >=50 <60
Print You have III Grade
if marks >=60 <70
Print You have || Grade
if marks >=70 <80
Print You have I Grade
if marks >=80
Print Your Grade is Honours
Stop
Answers
Answered by
1
Answer:
import java.util.Scanner;
class algorithm
{
public static void main(String abc[])
{
Scanner scn= new Scanner(System.in);
int x= scn.nextInt();
if(x<50)
System.out.println("You have failed");
else if(x>= 50 && x< 60)
System.out.println("You have III Grade");
else if(x>= 60 && x< 70)
System.out.println("You have II Grade");
else if(x>= 70 && x< 80)
System.out.println("You have I Grade");
else if(x>= 80)
System.out.println("Your Grade is Honours");
}
}
}
Explanation:
Similar questions