|
-
Dec 14th, 2009, 11:17 AM
#1
Thread Starter
New Member
Need Help with Looping Structures for Class
I have this Visual Basic class I'm taking online. And the damn professor doesn't know how to communicate or assist his students at all. He even seems a little irritated when I ask for pointers.
I can't figure out these two assignments. Partly because I didn't get any sleep last night. Using the guidlines, can anyone help me out here? At this point in the section all I'm supposed to know about are Do, Do While, Do Until, Exit Do, Continue Do, and For Next loops. So try not to go off in a fancy super-coder direction. And everything is (preferably) made through Console Applications on VBE 2008
Problem 1:
Write a program that evaluates the factorials of the integers from 1 to 10 using an appropriate data type. (factorials are... factorial of 1 is 1, factorial of 5 is 120, or 1*2*3*4*5=120)
Problem 2:
Make a diamond - 1 asterisk at the top, 9 asterisks at it's widest - using only nested For...Next statements to print the asterisks AND spaces, minimizing use of output statements.
This stuff is retarded and difficult for me. Any pointers for a noob?
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
|