title: using boolean expressions instead of if/else or similar condition
body: <p>I need to use boolen expressions instead of using terms such as: c: b? A, switch, else ... if. and using for / while-do / while as if is also not allowed.</p>
  
  <p>My question is when receiving a name, based on its value we decide what to print. For example, if the name is shorter than 6 letters we print "player A is sent", if the letters sum (in ascii values) is more than 20 we send player B and stuff like that. In addition, if we can send more than one player, we will choose to send the largest lexicographic player (playerC &lt; playerB &lt; playerA.)</p>
  
  <p>what I tried to do is something like this </p>
  
  <pre><code>  bool sum = AsciiSum(name)&gt;=20;
    bool len = NameLength(name)&lt;6;
  ...
  </code></pre>
  
  <p>so the rest should be that </p>
  
  <pre><code>if(sum) 
    printf("%c\n" ,'playerA');
  else if (len) 
    printf("%c\n" ,'playerB');
  else 
    printf("%c\n" ,'no player was sent');
  </code></pre>
  
  <p>But as I said , I cant use if and else or similar conditions. Will be grateful for any help in that last part.</p>