The Artima Developer Community
Sponsored Link

Java Answers Forum
I need help with some code plz!!!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
r g

Posts: 2
Nickname: meka1
Registered: Feb, 2009

I need help with some code plz!!! Posted: Feb 5, 2009 5:55 PM
Reply to this message Reply
Advertisement
so i need to create a list of all the possible ways to get 24 using four numbers less then 10 and 3 operators ( a + b + c +d or a * b / c - d). Now i could do this using like 64 if statments and four for loops but i am trying to find a more compressed way of doing it and i cant figure it out... any help would b nice, thank you

ps no arrays

Topic: please some one help me Previous Topic   Next Topic Topic: JAX India 2009: International Conference on Java Technologies April 06-10,

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use