Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Greater & Less Than
#1
All right, I have a big number group from 1 to 52,

Now lets say, I want only numbers 3, 16, 29, 43 to be the lowest of all the numbers

BUT

I want 4, 17, 30, 44, to be slightly higher but not greater than 5, 18, 31, 45

Making it in layers like so

Example:

3, 16, 29, 43 is less than 4, 17, 30, 44
4, 17, 30, 44 is less than 5, 18, 31, 45 but greater than 3, 16, 29, 43
5, 18, 31, 45 is less than 6, 19, 32, 46 but greater than 4, 17, 30, 44 & so on...
Reply
#2
ok, did anybody else catch that?
quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Reply
#3
I'm sorry. Your question is beyond vague.

Quote:All right, I have a big number group from 1 to 52,
Explain what you mean by "have a big number group".
Is this an array? Are they in a files? Are your individual data types the numbers themselves or groups of numbers?

Quote:Now lets say, I want only numbers 3, 16, 29, 43 to be the lowest of all the numbers


All the lists you posted follow this pattern,

x, x+3, x+13, x + 14.

Does this hold true for every group you want to work with?

Give us a brief description of the broader context you're working in.
Reply
#4
Ok
Reply
#5
Also, for those who dont get it yet.. he wants to sort a deck of cards...
Reply
#6
Quote:Also, for those who dont get it yet.. he wants to sort a deck of cards...

Yeah something on the concept of that idea.

1, 14, 27, 40 -Lowest
2, 15, 28, 41
3, 16, 29, 42
4, 17, 30, 43
5, 18, 31, 44
6, 19, 32, 45
7, 20, 33, 46
8, 21, 34, 47
9, 22, 35, 48
10, 23, 36, 49
11, 24, 37, 50
12, 25, 38, 51
13, 26, 39, 52 -Highest

Each one of the numbers is going to be something on the lines of

if num = 42 then
print "Example 52"

else goto 10

if num = 16 then
print "Example 11"
Reply
#7
Ok, I dont get it..
Reply
#8
Quote:Ok, I dont get it..

It's like um...

When chosen, each number will print out something different.

Like: If num = 12 then PRINT "Example 40"

the user presses a button & it randomly shoots out 5 numbers, lets say..

17, 40, 12, 38, 45
slot1, slot2, slot3, slot4, slot5,

.. For instance.

The program will look at the five numbers/slots

Deciding which one is higher,

In my diagram of 1 - 50 we can clearly see 12 is the highest & 40 is the lowest.

I want it to than spit out to the user the highest number (12) in a string.
Reply
#9
Quote:I'm sorry. Your question is beyond vague.
:laughing:

Quote:Ok, I dont get it..

ok, just so as long that i'm not thee only one here
quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Reply
#10
The more he posts, the more lost I get :???:
[Image: freebasic.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)