12-07-2004, 06:01 AM
make 6 multiplied by 9 equal 42. ythe only math exception i ask, cuz its special
earn.
request for freebasic.
|
12-07-2004, 06:01 AM
make 6 multiplied by 9 equal 42. ythe only math exception i ask, cuz its special
earn.
12-07-2004, 07:13 AM
and if it needs to be used?
have this equal 42 Code: six=1+5
12-07-2004, 07:16 AM
12-07-2004, 07:19 AM
Anyways.......
. . It is from the book =P
12-07-2004, 10:31 AM
Quote: It is from the book =P Psh. The 'from the book' example is always in C code. It's the law. #include <stdio.h> #define SIX 1 + 5 #define NINE 8 + 1 int main(void) { printf( "What you get if you multiply six by nine: %d\n", SIX * NINE ); return 0; }
12-07-2004, 11:19 AM
It's makes 42 out of "SIX" and "NINE". SIX and NINE are macros. Here is how it would look without macros:
Code: #include <stdio.h> 5 * 8 + 2 is 42. :wink:
12-07-2004, 05:36 PM
Or you could just do all your math in Base 13
his sig left intentionally blank
|
« Next Oldest | Next Newest »
|