-
123456789*123456789
I have been set the task of multiplying 123456789 by 123456789 using borland 3.1.
Its obvious to anyone what the problems going to be!!!
But...... How do I get round it?
In other words, how do I do this calculation using C or C++ in a DOS compiler.
It can be done, but how or where do I start?
To make matters worse, I have to prove my calculation by dividing the answer by 123456789 and ending up with 123456789 to prove my program actually works!!!!
Doh
-
double unsigned float x;
=P
-
floats / doubles cannot be unsigned.
You'll likely have to break it digit by digit and store them in a linked list / array, write your own multiplicaiton / carry function (recursion would work incely) and do it that way.
Quzah.