Search the Community

Showing results for tags 'all'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Main Forum
    • General Forum
    • Support & Feedback
    • Guest's Corner
    • Life
    • Health
    • Religion
    • Money & Employment
    • Art & Creativity
    • Entertainment
    • Misc.

Categories

  • content_cat_name_11

Blogs

  • Padre's Corner
  • I guess I should contribute
  • Deep Discussions
  • Life Hacks
  • A Blog
  • Lano's Lizardy Blog
  • BigWilly
  • Thoughts and things

Calendars

  • Community Calendar

Found 1 result

  1. Consider the sequence of digits from 1 through N (N<=9) in increasing order: 1 2 3 4 ... N Insert either a '+' (for addition) or a '-' (for subtraction) between each of the digits so that the resultant sum is zero. Print all possible combinations that sum to zero. Example: Enter number: 7 1+2-3+4-5-6+7=0 1+2-3-4+5+6-7=0 1-2+3+4-5+6-7=0 1-2-3-4-5+6+7=0 Example: Enter number: 4 1-2-3+4=0 How do you do this in JAVA?????