+ 2
Till which percentage can I make the limits for 1st 2nd and 3rd division?
5 odpowiedzi
+ 1
Thnk u very much ☺...It would help me out
0
Somebody please help me
0
Vipra
I don't find any problem in code..!
I don't understand your question. Can you elaborate it..?
0
I want to ask that...like in the first condition of 'if' 1st division or rank is given when the percentage is above 80.
So for 2nd and 3rd division or rank between what percentage can I give the ranks?
0
It's up to you.. Feel like you are principal and decide rules. 😊
I like to put this way. generally..
if (percent >= 80)
System.out.println("\n 1st divison");
else if (percent >=60 && percent <= 79)
System .out.println ("\n 2nd divison");
else if (percent >=40 && percent <= 59)
System.out.println ("\n 3rd divison ");
else System.out.print("Fail");
you can use your own conditions. it's user defined. not a standards.
Use <=,>= instead of <,> will cover all values. Otherwise you miss some values for example if percent=80 , your code missing to decide. so No outputs.