Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 131,735 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,206 people online right now. Registration is fast and FREE... Join Now!




Factorial Application

 
Reply to this topicStart new topic

Factorial Application, Factorial application

nemse
post 7 Oct, 2008 - 04:16 PM
Post #1


New D.I.C Head

*
Joined: 7 Oct, 2008
Posts: 4

Can anyone give me the entire code for factorial application.

Here's the pseudocode

If x > 0
factorial = x
Loop for x = x to x = 1
factorial = factorial * x
x = x - 1
End loop
Else If x = 0 Then
Factorial = 1

Else (x not > 0)
Display a message “error”
End if
User is offlineProfile CardPM

Go to the top of the page

thava
post 7 Oct, 2008 - 04:23 PM
Post #2


D.I.C Regular

Group Icon
Joined: 17 Apr, 2007
Posts: 423



Thanked 17 times

Dream Kudos: 50
My Contributions


its simple
go through the tutorial section and follow the guide lines for looping and if construts that's all you get the code
because you write the pseudo code and it's not much hard to convert to it in vb6 so try if you still not able to find a solution then ask where you struck we should surely access you
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 10:48AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month