i want to write a program that will output all of the factorials up to a maximum number provided....if anyone can guide me, thanks...
k8lj 0 Newbie Poster
Recommended Answers
Jump to Postyoull need an outer loop which loops as high as the amount of factorials you want to compute, and an inner loop which will compute the factorial at the outer loops number.
pseudocode:
input n
set x = 1
loop n times
set num = 1
set y …
Jump to PostFor really large number you need to consider using strings.
Perhaps even karbutstra's algo, for efficient multiplication.
Jump to PostAnd if you can manage it I think there is a possibility to integrate java's big number class with vb.net or so I've read.
All 9 Replies
TylerSBreton 13 Junior Poster in Training
Godfear1 0 Unverified User
k8lj 0 Newbie Poster
Godfear1 0 Unverified User
sneekula 969 Nearly a Posting Maven
Yaseen Hejazi 0 Newbie Poster
Godfear1 0 Unverified User

iamthwee

iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.