Till which percentage can I make the limits for 1st 2nd and 3rd division? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Till which percentage can I make the limits for 1st 2nd and 3rd division?

https://code.sololearn.com/ctc1oqC1H06h/?ref=app

2nd Jul 2021, 7:45 AM
Sarvesh Chaudhary
Sarvesh Chaudhary - avatar
5 Answers
+ 1
Thnk u very much ☺...It would help me out
3rd Jul 2021, 12:38 AM
Sarvesh Chaudhary
Sarvesh Chaudhary - avatar
0
Somebody please help me
2nd Jul 2021, 9:06 AM
Sarvesh Chaudhary
Sarvesh Chaudhary - avatar
0
Vipra I don't find any problem in code..! I don't understand your question. Can you elaborate it..?
2nd Jul 2021, 10:27 AM
Jayakrishna 🇮🇳
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?
2nd Jul 2021, 2:22 PM
Sarvesh Chaudhary
Sarvesh Chaudhary - avatar
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.
2nd Jul 2021, 8:39 PM
Jayakrishna 🇮🇳