+ 2

Challenge : Love or Hate

input two random integers seperated with spaces (2 8) when we sum those to integers and ger the love number 6, print Love. else print Hate p.s. we can use (10 -4) and get Love. good luck this is an easy challenge if you want i can give harder

8th Aug 2017, 11:01 AM
Domces Games
Domces Games - avatar
4 odpowiedzi
+ 3
So basicly we need to do: if(a+b == 6) cout<<"love"; else cout<<"hate"; Yeah I guess harder challange would be better.
8th Aug 2017, 11:20 AM
Jakub Stasiak
Jakub Stasiak - avatar
+ 6
@jakub i also agree for a harder challenge
8th Aug 2017, 11:24 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 3
ok, you want a harder challenge, ill give ypu a harder challenge
8th Aug 2017, 11:25 AM
Domces Games
Domces Games - avatar
+ 3
System.out.print(new String((a+b) == 6 ? "Love" : "Hate")); I'm sorry but this is too trivial
9th Aug 2017, 5:44 AM
Garikai
Garikai - avatar