Try this programin c++ its very difficult

+1 Rohan Garg · February 13, 2015

their is no datatype that can hold this much of range
program to find factorial of n........50<n<100

Post a Reply

Replies

Oldest  Newest  Rating
+1 Çağlan Turgut · February 13, 2015
You might want to take a look at:

http://stackoverflow.com/questions/2568446/the-best-cross-platform-portable-arbitrary-precision-math-library

http://mathforum.org/library/drmath/view/63866.html

http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic

To have an idea about using arbitrarily big numbers like 1000! (factorial of 1000).But keep in mind that using bignum arithmetic is much slower than fixed-precision arithmetic that you use with smaller numbers.
0 Rohan Garg · February 14, 2015
can you please make a program
it will be more easy for me
0 Rohan Garg · February 14, 2015
can you please make a program
it will be more easy for me
+1 Çağlan Turgut · February 14, 2015
Don't let the llama to discourage you. You do not need to pay to learn this. If you are a C++ beginner there's no way that you can understand how to do that anyways. If you are a beginner try to get better(at least intermediate if not advanced). Then you can use GMP( https://gmplib.org/ ) to do what you're trying to do. Noone will do your "homework" for you for free and if they were to do it, it is not easy to understand someone else's code(especially on a subject that requires libraries and such)! Try too do something and say what did you tried!

What you will need to do is basically download a library (preferably GMP) and send the data as string(usually) and it will return you the results by doing low level thing that you are not necessarily required to understand.


http://en.wikipedia.org/wiki/GNU_Multiple_Precision_Arithmetic_Library
0 Rohan Garg · February 15, 2015
thanks
  • 1

C++

107,336 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator