wuite a java program to display the division
according to the given
and 80% and above - display destination
60% and more but less than 80% - display 1st Division
45% and more but less than 60% display - 2nd Division
40% and more but less than 45% - display - 3rd Division
Less than 40% - display fail
Answers
Answered by
0
Answer:
import java.io.*
public class division
{
public static void main(string args[])
{
System.out.println("enter the division");
DataInputStream in=new DataInputStream(System.in);
int a=Integer.parseInteger(in.readLine());
if(a>=80)
Sytem.out.println("distinction");
if((a>=60)&&(a<80))
Sytem.out.println("first division");
if((a>=45)&&(a<60)
Sytem.out.println("second division");
if((a>=40)&&(a<45))
Sytem.out.println("third division");
if(a<40)
System.out.println("fail");
}
}
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Social Sciences,
8 months ago
Hindi,
11 months ago
Math,
11 months ago