Read number(N)keyed in by user
Set factorial to 1
While N is not equal to 0
Set factorial=factorial*N
Set N= N-1
End While
Display factorial
yayaza 0 Newbie Poster
Recommended Answers
Jump to PostWhat have you done so far? in codeing that is
Jump to PostWhere is the user input?
Why is factorial a string?
Why are you assigning an integer to a string?
That while statement won't compile.
The factorial assigment statement is incorrect.
The final statement will not compile.
Jump to PostWhere is the user input?
Where is N defined, N is the input
Get the input from the user.Why is factorial a string?
Make factorial an integer
Why are you assigning an integer to a string?
I think he was saying why are you assigning it as string where …
All 11 Replies
finito 46 Nearly a Posting Virtuoso
yayaza 0 Newbie Poster
apegram 302 LINQ! Team Colleague
yayaza 0 Newbie Poster
finito 46 Nearly a Posting Virtuoso
yayaza 0 Newbie Poster
finito 46 Nearly a Posting Virtuoso
yayaza 0 Newbie Poster
finito 46 Nearly a Posting Virtuoso
yayaza 0 Newbie Poster
finito 46 Nearly a Posting Virtuoso
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.