1 2 Previous Next 24 Replies Latest reply: Aug 29, 2008 5:26 PM by 843785 RSS

    boolean problems?? maths-header in need

    843785
      hy all, is der anyone can help me wit this??

      {color:#ff0000}56 {color}57 {color:#ff0000}58{color} 59 {color:#ff0000}60 {color}61 {color:#ff0000}62{color} 63
      48 {color:#ff0000}49{color} 50 {color:#ff0000}51{color} 52 {color:#ff0000}53{color} 54 {color:#ff0000}55{color}
      {color:#ff0000}40{color} 41 {color:#ff0000}42{color} 43 {color:#ff0000}44{color} 45 {color:#ff0000}46{color} 47
      32 {color:#ff0000}33{color} 34 {color:#ff0000}35{color} 36 {color:#ff0000}37{color} 38 {color:#ff0000}39
      {color}{color:#ff0000}24{color} 25 {color:#ff0000}26{color} 27 {color:#ff0000}28{color} 29 {color:#ff0000}30{color} 31
      16 {color:#ff0000}17{color} 18 {color:#ff0000}19{color} 20 {color:#ff0000}21{color} 22 {color:#ff0000}23{color}
      {color:#ff0000}8 {color}9 {color:#ff0000}10 {color}11 {color:#ff0000}12 {color}13 {color:#ff0000}14{color} 15
      0 {color:#ff0000}1{color} 2 {color:#ff0000}3 {color}4 {color:#ff0000}5{color} 6 {color:#ff0000}7
      {color}
      imagine the above number is in chess board pattern
      how to get the red colored numbers?? using the boolean code expression, without using the if -else or without any loops expression??
      eg : if i enter number (1), it will excute TRUE and if i enter (11) then it will execute FALSE (as it is not a red-colored number). I try to use the even and odd parity concept but how?? listing out the each possible 32 numbers won't be a good solution right??

      thnks.
        1 2 Previous Next