12114 - Bachelor Arithmetic
Solution Description : Adhoc problem In this problem probability of marriage for a bachelor increases is impossible because - 1 (The value that is smaller) so here impossible output: “:-)” (do not need to consider) You need to consider only “:-(” or “:-|” or “:-” Input B and S if B equal 0 or 1 then ---print :- if B less than or equal S then ---print :-| if B is greater than S then ---print :-( |
||||||||||