Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A number game

 
Jim Baker
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
123456789
Put the signs "+", "-", "X", "%", in any order
and as many time as you want, between the numbers
above in the given order to make it equal to 100.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here ya go:

1 + 23 * 4 - 5 + 6 + 7 + 8 - 9
 
Ashish Hareet
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have a choice to not use all those operators , then it's
1+2+3+4+5+6+7+(8*9) == 100
How about this-
987654321
 
Jim Baker
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forgot one rule: you have to use all the
signs at least once.
 
Jane Somerfield
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1+234X5%6-7-89=100
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic