Assalamualaikum It's a simple matter storing huge amount of numbers. Use an array of characters AKA string and you can get around 1000 digits or so.
I made just the addition part as entertainment at free time. Surprised to see it's a project. It's supposed to be a 2 week assignment, anyway :) . Allah Hafiz --- In [email protected], "Nico Heinze" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], amee ahmed <amee_ahmd@> wrote: > > > > Hi Mr Nico! > > Thanks for reading my messege and replying also.I want to > > make some questions more if u dont mind plz guide me. > > I am a student and findinding C language to mch difficult. > > In this projest i have to perform some operations on these > > numbers like addition, subtraction, how i can perform these > > opreations on these numbers.and plz explain why i can use > > arrays and what else i need to use in this project. > > I see your point. In my opinion C is utterly inappropriate for > newbies, there's nothing more to say about this. > But this doesn't help you in any way. O.k., let's get to the point. As > you don't know much about C, I strongly suggest you get a copy of the > "C bible", the book The ANSI C Language by Brian Kernighan and Dennis > Ritchie, the original authors of C. The introductory chapters are > fairly good and concise and will explain such tasks as converting a > string of characters (namely numeric digits) into a number. Play > around with this knowledge on paper (yes, I mean a blank sheet of > paper and a pen!), try to understand how we humans work with numbers > larger than our brain can hold (e.g. I can easily multiply two numbers > with two digits each in my head, but dividing an arbitrary 5-digit > number by a 3-digit number in my head is nothing I can do), and as > soon as you have understood the principle, try to do this with an > array of integer values; every single value within this array holds > one digit [yes, that's a waste of space, but what the heck, for > training purposes this is fine], so this should be easy to understand. > > For specific questions, please return here, we'll do what we can to > support you [o.k., some of us will do]. > > Regards, > Nico >
