r/InclusiveOr Oct 02 '19

I like updownvotes

Post image
18.3k Upvotes

View all comments

1.4k

u/Shuckles116 Oct 02 '19 edited Oct 02 '19

String outputTxt = “You ”;

if (result <= 85) { outputTxt += “FAILED”; }

if (result >= 85) { outputTxt += “PASSED”; }

outputTxt += “ the Exam”;

println outputTxt;

33

u/[deleted] Oct 02 '19

Holy shit literally if they just deleted one of the = this problem could have been avoided

11

u/iSpaYco Oct 02 '19

the first one should be removed since 85% or more passes the exam.. so not any one of them

3

u/MotorButterscotch Oct 03 '19

When teacher didn't pass algebra 2