|
-
October 8th, 2010, 04:31 AM
#1
Visual Basic
1. Modify the summation procedure in lesson in action and use Do-Until loop instead.
2. How many times does the following loop iterates?
intX = 20
Do While (intX > = 1)
intX = intX + 1
Loop
3. Create a program that asks for a number and computers for its factorial. The Factorial of 3 is 6 (1 x 2 x 3).Factorial of 5 is 120 (1 x 2 x 3 x 4 x 5). You may use the same Form and change the caption of the button from summation to Factorial. Also, make sure that the user enters a number using the IsNumeric () Function.Display appropriate messages in the label if the user enters non-numeric values.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|