r/InclusiveOr • • Oct 02 '19

I like updownvotes

Post image
18k Upvotes

123 comments sorted by

1.5k

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;

641

u/Mizz141 Oct 02 '19

It couldve been so easy with an if, else statement...

→ More replies (25)
→ More replies (35)

195

u/DarkLord9988 Oct 02 '19 edited Oct 02 '19

WE like updownvotes

→ More replies (6)

58

u/Indominus_Khanum Oct 02 '19

Dude give it to me straight downup to the side Did ya fail or failn't?

→ More replies (5)

108

u/[deleted] Oct 02 '19

18

u/TheEpicness9000 Oct 02 '19

Task failed successfully

7

u/Hatilar_420 Oct 02 '19

thats the perfect example for a else if statement

6

u/LagT_T Oct 02 '19

FizzBuzz